Description Usage Arguments Examples

`plotHistogramOverlayCorrelation`

Overlays the histogram and the theorical normal distribution.

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

`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". |

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.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.