plotHistogramOverlayNormal: Creates an overlay of the histogram of the data and the...

Description Usage Arguments Examples

View source: R/rectifiedI.R

Description

plotHistogramOverlayNormal Overlays the histogram and the theorical normal distribution.

Usage

1
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

1
2
3
4
5
6
7
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)

Irescale documentation built on Nov. 22, 2019, 1:07 a.m.