plot.localtest {stopp}R Documentation

Plot of the result of the local permutation test

Description

This function plots the result of the local permutation test performed with localtest on either a stp or stlp object. It highlights the points of the background pattern X, which exhibit local differences in the second-order structure with respect to Z, according to the previously performed test. The remaining points of X are also represented.

It also shows the underlying linear network, if the local test has been applied to point patterns occurring on the same linear network, that is, if localtest has been applied to a stlp object.

Usage

## S3 method for class 'localtest'
plot(x, col = "grey", cols = "lightgrey", col2 = "red", ...)

Arguments

x

An object of class localtest

col

Color of the significant points

cols

Color of the linear network. If applicable.

col2

Color of the non-significant points

...

additional unused argument

Author(s)

Nicoletta D'Angelo

References

D’Angelo, N., Adelfio, G., and Mateu, J. (2021). Assessing local differences between the spatio-temporal second-order structure of two point patterns occurring on the same linear network. Spatial Statistics, 45, 100534.

Siino, M., Rodríguez‐Cortés, F. J., Mateu, J. ,and Adelfio, G. (2018). Testing for local structure in spatiotemporal point pattern data. Environmetrics, 29(5-6), e2463.

See Also

localtest, print.localtest, summary.localtest

Examples




set.seed(2)
X <- rstpp(lambda = function(x, y, t, a) {exp(a[1] + a[2]*x)},
            par = c(.005, 5))
Z <- rstpp(lambda = 30)

test <- localtest(X, Z, method = "K", k = 3) 

plot(test)





[Package stopp version 0.2.4 Index]