View source: R/clusterfunctions.R
clusterfield.kppm | R Documentation |
Calculate the superposition of cluster kernels at the location of a point pattern.
## S3 method for class 'kppm'
clusterfield(model, locations = NULL, ...)
model |
Cluster model. Either a fitted cluster model (object of class
|
locations |
A point pattern giving the locations of the kernels. Defaults to the
centroid of the observation window for the |
... |
Additional arguments passed to |
The function clusterfield
is generic,
with a method for "kppm"
(described here)
and methods for "character"
and "function"
.
The method clusterfield.kppm
extracts the relevant information
from the fitted model and calls clusterfield.function
.
The calculations are performed by density.ppp
and
...
arguments are passed thereto for control over the pixel
resolution etc.
(These arguments are then passed on to pixellate.ppp
and as.mask
.)
A pixel image (object of class "im"
).
.
kppm
,
clusterfield
.
fit <- kppm(redwood~1, "Thomas")
Z <- clusterfield(fit, eps = 0.01)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.