ResamplePlot | R Documentation |
Plot of Monte Carlo simulations results. The function can
be used in two ways: buy providing a ResampleTest object, using ResampleTest
or a simulated distribution vector, a value and a name of the index
ResamplePlot(ResampleTest, var = 1, coldist = 'red', colind = 'blue',
legend = TRUE, legendpos = 'top', cex.legend = 1, bty = 'o')
ResampleTest |
- a ResampleTest object prodused with |
var |
the number of the variable to be plot |
coldist |
color used to plot the simulated distribution |
colind |
color used to plot the index |
legend |
logical parameter, to control the legend's plots |
legendpos |
a character string giving the legend's position: 'bottomright', 'bottom', 'bottomleft', 'left', 'topleft', 'top', 'topright', 'right' and 'center'. |
cex.legend |
a numerical value giving the amount by which plotting text and symbols in legend should be magnified relative to the default. |
bty |
a character string which determines the type of box of the legend. If bty is one of 'o' (the default), 'l', '7', 'c', 'u', or ']' the resulting box resembles the corresponding upper case letter. A value of 'n' suppresses the box. |
A plot with resampling theoretical distribution
Tivadar M. (2019) OasisR: An R Package to Bring Some Order to the World of Segregation Measurement. Journal of Statistical Software, 89 (7), pp 1-39
ResampleTest
x <- segdata@data[ ,1:2]
xtest <- ResampleTest (x, fun ='ISMorrill', simtype = 'MonteCarlo',
sampleunit = 'unit', spatobj = segdata)
ResamplePlot(xtest, var = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.