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

Description Usage Arguments Examples

View source: R/rectifiedI.R

Description

plotHistogramOverlayCorrelation Overlays the histogram and the theorical normal distribution.

Usage

1
2
plotHistogramOverlayCorrelation(originalVec, vec, I, n, bins = 50,
  main = "Histogram")

Arguments

originalVec

The original vector of I, it should be sorted.

vec

the vector to plot.

I

the value of I to plot

n

number of observations in the sample.

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)
originalI<-resamplingI(distM, input$varOfInterest)
correlationI<-ItoPearsonCorrelation(originalI,length(input$varOfInterest))
plotHistogramOverlayCorrelation(originalI,correlationI,I,length(input$varOfInterest))

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