plotHistogramOverlayNormal {Irescale} | R Documentation |
Creates an overlay of the histogram of the data and the theorical normal distribution.
Description
plotHistogramOverlayNormal
Overlays the histogram and the theorical normal distribution.
Usage
plotHistogramOverlayNormal(vec, stats, bins = 50, main = "Histogram")
Arguments
vec |
the vector to plot. |
stats |
the stats obtained from summaryVector. |
bins |
the number of bins for the histogram, The default value is 30. |
main |
the title of the histogram, The default value is "Histogram". |
Examples
inputFileName<-system.file("testdata", "chen.csv", package="Irescale")
input<-loadFile(inputFileName)
distM<-calculateEuclideanDistance(input$data)
I<-calculateMoranI(distM = distM,varOfInterest = input$varOfInterest)
vI<-resamplingI(distM, input$varOfInterest)
statsVI<-summaryVector(vI)
plotHistogramOverlayNormal(vI,statsVI)
[Package Irescale version 2.3.0 Index]