smooth.ppp

0th

Percentile

Spatial smoothing of observations at irregular points

Performs spatial smoothing of numeric values observed at a set of irregular locations.

Keywords
methods, smooth, spatial

Value

• If X has a single column of marks:
• Ifat="pixels"(the default), the result is a pixel image (object of class"im"). Pixel values are values of the interpolated function.
• Ifat="points", the result is a numeric vector of length equal to the number of points inX. Entries are values of the interpolated function at the points ofX.
If X has a data frame of marks:
• Ifat="pixels"(the default), the result is a named list of pixel images (object of class"im"). There is one image for each column of marks. This list also belongs to the classlistof, for which there is a plot method.
• Ifat="points", the result is a data frame with one row for each point ofX, and one column for each column of marks. Entries are values of the interpolated function at the points ofX.
The return value has attributes "sigma" and "varcov" which report the smoothing bandwidth that was used.

density.ppp, ppp.object, im.object. To perform interpolation, see the akima package.

• smooth.ppp
• markmean
• markvar
Examples
# Longleaf data - tree locations, marked by tree diameter
data(longleaf)
# Local smoothing of tree diameter
Z <- smooth.ppp(longleaf)
# Kernel bandwidth sigma=5
plot(smooth.ppp(longleaf, 5))
# mark variance
plot(markvar(longleaf))
# data frame of marks: trees marked by diameter and height
data(finpines)
plot(smooth.ppp(finpines))
Documentation reproduced from package spatstat, version 1.21-0, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.