locationRasterize: Location Density Raster

Description Usage Arguments Details Value

Description

Bin locations to form a 2D density raster

Usage

1
2
3
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


KateGoodenough/RoL-SGAT documentation built on June 11, 2019, 1:29 p.m.