Kernel smoothed spatial density of point pattern
spdensity
computes a kernel smoothed spatial
density function from a point pattern. This function is
basically a wrapper for density.ppp
.
The density.ppp
function computes
the spatial intensity of a point pattern; the spdensity
function scales the intensity to produce a true spatial density.
spdensity( x, sigma = NULL, ..., weights = NULL, edge = TRUE, varcov = NULL, at = "pixels", leaveoneout = TRUE, adjust = 1, diggle = FALSE, kernel = "gaussian", scalekernel = is.character(kernel), positive = FALSE, verbose = TRUE )
x |
Point pattern (object of class |
sigma |
Standard deviation of isotropic smoothing kernel.
Either a numerical value, or a function that computes an
appropriate value of |
... |
Additional arguments passed to |
weights |
Optional weights to be attached to the points.
A numeric vector, numeric matrix, an |
edge |
Logical value indicating whether to apply edge correction. |
varcov |
Variance-covariance matrix of anisotropic smoothing kernel.
Incompatible with |
at |
String specifying whether to compute the intensity values
at a grid of pixel locations ( |
leaveoneout |
Logical value indicating whether to compute a leave-one-out
estimator. Applicable only when |
adjust |
Optional. Adjustment factor for the smoothing parameter. |
diggle |
Logical. If |
kernel |
The smoothing kernel.
A character string specifying the smoothing kernel
(current options are |
scalekernel |
Logical value.
If |
positive |
Logical value indicating whether to force all density values to
be positive numbers. Default is |
verbose |
Logical value indicating whether to issue warnings about numerical problems and conditions. |
This function produces the spatial density of x
as an object of class im
from the spatstat.core
package.
Joshua French
Waller, L.A. and Gotway, C.A. (2005). Applied Spatial Statistics for Public Health Data. Hoboken, NJ: Wiley.
data(grave) contour(spdensity(grave))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.