ResamplePlot: A function to plot the results of resampling methods

Description Usage Arguments Value References See Also Examples

View source: R/SegFunctions.R

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

1
2
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

1
2
3
4
5
6
x <- segdata@data[ ,1:2]

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

OasisR documentation built on July 2, 2020, 3:14 a.m.

Related to ResamplePlot in OasisR...