kdestimate | R Documentation |
Wrapper around spatstat
functions. Kernel density is estimated for
a point pattern in a given window for different levels of a categorical
variable.
kdestimate(x, mask, markscol, lvls, sigma = 4000, points = TRUE)
x |
|
mask |
Single |
markscol |
Column name of |
lvls |
Vector of levels of |
sigma |
Standard deviation of isotropic smoothing kernel.
Numeric value, passed to |
points |
Logical, return value for points or whole surface as raster image.
Defaults to |
With points
set to TRUE
(default) returns a tibble with
KDE estimated at given points. If set to FALSE
, a tibble with KDE
values in a grid is returned to be plotted using ggplot2
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.