"plot"(x, ..., how = c("smoothed", "nearest", "points"), style = c("image", "contour", "imagecontour"), sigma = NULL, contourargs=list())
"image"(x, ...)
"contour"(x, ..., main, sigma = NULL)
"ssf"
).
image.default
or
plot.ppp
to control the plot.
how="points"
),
a smoothed interpolation of the function
(how="smoothed"
), or the function value at the
nearest data point (how="nearest"
).
contour.default
to control the contours, if style="contour"
or
style="imagecontour"
.
NULL
.
plot
,
image
and
contour
for the class "ssf"
.
An object of class "ssf"
represents a
function (real- or vector-valued) that has been
sampled at a finite set of points. For plot.ssf
there are three types of display.
If how="points"
the exact function values
will be displayed as circles centred at the locations where they
were computed. If how="smoothed"
(the default) these
values will be kernel-smoothed using smooth.ppp
and displayed as a pixel image.
If how="nearest"
the values will be interpolated
by nearest neighbour interpolation using nnmark
and displayed as a pixel image.
For image.ssf
and contour.ssf
the values are
kernel-smoothed before being displayed.
Baddeley, A., Rubak, E. and Turner, R. (2015) Spatial Point Patterns: Methodology and Applications with R. Chapman and Hall/CRC Press.
ssf
a <- ssf(cells, nndist(cells, k=1:3))
plot(a, how="points")
plot(a, how="smoothed")
plot(a, how="nearest")
Run the code above in your browser using DataLab