View source: R/kfunc_envelopes.R
kfunc_envelopes | R Documentation |
Perform simulations from a scampr model to calculate global envelopes for the inhomogeneous K function
kfunc_envelopes(
model,
conf.level = 0.95,
nsims = 100,
Kfun.correction = c("border", "bord.modif", "isotropic", "translate"),
return.data = F,
spatstat.win,
dists = NULL
)
model |
a scampr model object |
conf.level |
a numeric between 0 and 1 indicating the confidence level of the global envelope test |
nsims |
an integer describing the number of simulations to conduct |
Kfun.correction |
a character string describing the correction type to be used. See |
return.data |
a logical indicating whether to return the observed and simulated data |
spatstat.win |
Optionally, a spatstat window object. |
dists |
a vector of values for the distances at which the inhomogeneous K function should be evaluated. Not normally given by the user; |
Optionally, a list of the observed and simulated K functions - see GET::create_curve_set()
. Results are plotted.
# Get the data
dat <- scampr::gorillas
dat$elev <- scale(dat$elevation)
mod <- scampr(pres ~ elev, dat, model.type = "PO", include.sre = F)
kfunc_envelopes(mod)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.