Irescale (version 0.2.6)

plotHistogramOverlayNormal: 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, density = 30,
  main = "Histogram")

Arguments

vec

the vector to plot.

stats

the stats obtained from summaryVector.

density

the number of bins for the histogram, The default value is 30.

main

the title of the histogram, The default value is "Histogram".

Examples

Run this code
# NOT RUN {
inputFileName<-system.file("testdata", "chen.csv", package="Irescale")
input<-loadFile(inputFileName)
distM<-calculateEuclideanDistance(input$data)
I<-calculateMoranI(distM = distM,varOfInterest = input$varOfInterest)
vI<-resamplingI(1000,distM, input$varOfInterest)
statsVI<-summaryVector(vI)
plotHistogramOverlayNormal(vI,statsVI)
# }

Run the code above in your browser using DataLab