View source: R/envelopeArray.R
envelopeArray | R Documentation |
Compute an array of simulation envelopes using a summary function that returns an array of curves.
envelopeArray(X, fun, ..., dataname = NULL, verb = FALSE, reuse = TRUE)
X |
Object containing point pattern data.
A point pattern (object of class
|
fun |
Function that computes the desired summary statistic
for a point pattern. The result of |
... |
Arguments passed to |
dataname |
Optional character string name for the data. |
verb |
Logical value indicating whether to print progress reports. |
reuse |
Logical value indicating whether the envelopes in each panel
should be based on the same set of simulated patterns
( |
This command is the counterpart of envelope
when the function fun
that is evaluated on each simulated point pattern
will return an object of class "fasp"
representing an array of
summary functions.
Simulated point patterns are generated according to the
rules described for envelope
. In brief,
if X
is a point pattern, the algorithm generates
simulated point patterns of the same kind, according to complete
spatial randomness. If X
is a fitted model, the algorithm
generates simulated point patterns according to this model.
For each simulated point pattern Y
, the function fun
is invoked. The result Z <- fun(Y, ...)
should be an object of
class "fasp"
representing an array of summary functions.
The dimensions of the array Z
should be the same
for each simulated pattern Y
.
This algorithm finds the simulation envelope of the summary functions in each cell of the array.
An object of class "fasp"
representing
an array of envelopes.
.
envelope
, alltypes
.
Nsim <- if(interactive()) 19 else 3 A <- envelopeArray(finpines, markcrosscorr, nsim=Nsim) plot(A)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.