clusterfield.kppm {spatstat.model} | R Documentation |
Field of clusters
Description
Calculate the superposition of cluster kernels at the location of a point pattern.
Usage
## S3 method for class 'kppm'
clusterfield(model, locations = NULL, ...)
Arguments
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 |
Details
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
.)
Value
A pixel image (object of class "im"
).
Author(s)
Adrian Baddeley Adrian.Baddeley@curtin.edu.au, Rolf Turner rolfturner@posteo.net and Ege Rubak rubak@math.aau.dk.
See Also
kppm
,
Examples
fit <- kppm(redwood~1, "Thomas")
Z <- clusterfield(fit, eps = 0.01)