rlabel_local | R Documentation |
Local random labelling of marked point pattern
rlabel_local(X, distance, nsim = 19, drop = TRUE)
X |
ppp |
distance |
Mark of points that do not change. |
nsim |
Number of patterns to simulate. |
drop |
If nsim = 1 and drop = TRUE , the result will be a point pattern, rather than a list containing a point pattern. |
Local random labelling function, i.e. marks will be shuffeld only across points within the specified local distance. Technically, this is achived by sampling the mark of a neighbouring point j within the distance d for the focal point i. Thus, the distance d must be selected in a way that each point has at least one neighbour within d.
Returns a list
with ppp
objects.
list
Velázquez, E., Martínez, I., Getzin, S., Moloney, K.A., Wiegand, T., 2016. An evaluation of the state of spatial point pattern analysis in ecology. Ecography 39, 1–14. <https://doi.org/10.1111/ecog.01579>
Wiegand, T., Moloney, K.A., 2014. Handbook of spatial point-pattern analysis in ecology. Chapman and Hall/CRC Press, Boca Raton, USA. <isbn:978-1-4200-8254-8>
rlabel
set.seed(42)
pattern <- spatstat.random::runifpoint(n = 250, win = spatstat.geom::owin(c(0, 100), c(0, 100)))
spatstat.geom::marks(pattern) <- runif(n = 250, min = 10, max = 120)
rlabel_local(X = pattern, distance = 25, nsim = 19)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.