locationRasterize: Location Density Raster

View source: R/Raster.R

locationRasterizeR Documentation

Location Density Raster

Description

Bin locations to form a 2D density raster

Usage

locationRasterize(s, grid, weights = 1, zero.is.na = TRUE)

locationKernelize(s, grid, weights = 1, bw = NULL)

Arguments

s

a single chain or a list of parallel chains generated by estelleMetropolis or stellaMetropolis.

grid

raster object that defines the sampling grid

weights

weights for each location

zero.is.na

if TRUE, zero counts are returned as NA.

bw

optional bandwidth for the kernel density estimator.

Details

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.

Value

a raster representing a 2D histogram of locations


SWotherspoon/SGAT documentation built on June 1, 2022, 10:49 p.m.