simulate_heterogenous_pattern: simulate_heterogenous_pattern

View source: R/simulate_heterogenous_pattern.R

simulate_heterogenous_patternR Documentation

simulate_heterogenous_pattern

Description

Simulate heterogeneous pattern

Usage

simulate_heterogenous_pattern(x, nsim, fix_n = FALSE, ...)

Arguments

x

ppp

nsim

Number of patterns to simulate.

fix_n

Logical if true the null model patterns have exactly the same number of points ais input.

...

Arguments passed to spatstat.explore::density.ppp().

Details

Simulate heterogeneous point patterns as null model data for spatstat.explore::envelope(). A heterogeneous Poisson process is used, meaning that there are no interaction between points, however, the simulated coordinates depend on the intensity λ of the input pattern.

Returns a list with ppp objects.

Value

list

References

Baddeley, A., Rubak, E., Turner, R., 2015. Spatial point patterns: Methodology and applications with R. Chapman and Hall/CRC Press, London, UK. <isbn:978-1-4822-1020-0>

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>

See Also

envelope
density.ppp

Examples

set.seed(42)
input_pattern <- spatstat.random::rpoispp(lambda = function(x , y) {100 * exp(-3 * x)}, nsim = 1)
null_model <- simulate_heterogenous_pattern(input_pattern, nsim = 19)
spatstat.explore::envelope(Y = input_pattern, fun = spatstat.explore::pcf, nsim = 19,
simulate = null_model)


onpoint documentation built on March 7, 2023, 8:04 p.m.