spdensity computes a kernel smoothed spatial density function from a point pattern. This is essentially a slight modification of the density.ppp function from the spatstat package, which computes the spatial intensity of a point pattern.spdensity(x, sigma = NULL, ..., weights = NULL, edge = TRUE,
varcov = NULL, at = "pixels", leaveoneout = TRUE, adjust = 1,
diggle = FALSE)density.ppp function from the spatstat package, with the intensity values scaled so that a true spatial density function is produced.data(grave)
contour(spdensity(grave))Run the code above in your browser using DataLab