ResamplePlot: A function to plot the results of resampling methods

View source: R/SegFunctions.R

ResamplePlotR Documentation

A function to plot the results of resampling methods

Description

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

Usage

ResamplePlot(ResampleTest, var = 1, coldist = 'red', colind = 'blue', 
legend = TRUE, legendpos = 'top', cex.legend = 1, bty = 'o')

Arguments

ResampleTest

- a ResampleTest object prodused with ResampleTest function

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.

Value

A plot with resampling distribution

References

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

See Also

ResampleTest

Examples

x <- segdata@data[ ,1:2]

xtest <- ResampleTest (x, fun ='ISMorrill', simtype = 'MonteCarlo', 
                       sampleunit = 'unit', spatobj = segdata)
                       
ResamplePlot(xtest, var = 1)


OasisR documentation built on Aug. 30, 2023, 1:09 a.m.

Related to ResamplePlot in OasisR...