locationRasterize | R Documentation |
Bin locations to form a 2D density raster
locationRasterize(s, grid, weights = 1, zero.is.na = TRUE) locationKernelize(s, grid, weights = 1, bw = NULL)
s |
a single chain or a list of parallel chains generated by
|
grid |
raster object that defines the sampling grid |
weights |
weights for each location |
zero.is.na |
if |
bw |
optional bandwidth for the kernel density estimator. |
Constructs either a 2D histogram or kernel density estimate from the samples for a sequence of locations. Optionally, a vector of weights can be provided to differentially weight samples by location.
a raster representing a 2D histogram of locations
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.