Creates a bin.den
-class
(gridded binned density) object
with simple or linear binning counts.
bin.den(x, nbin = NULL, type = c("linear", "simple"))
as.bin.den(object, ...)
# S3 method for class 'data.grid'
as.bin.den(object, weights.ind = 1, ...)
# S3 method for class 'bin.den'
as.bin.den(object, ...)
vector or matrix of covariates (e.g. spatial coordinates). Columns correspond with dimensions and rows with observations.
vector with the number of bins on each dimension.
character, binning method: "linear"
(default) or "simple"
.
(gridded data) used to select a method.
further arguments passed to or from other methods.
integer or character with the index or name of the component containing the bin counts/weights.
Returns an S3 object of class
bin.den
(extends data.grid
).
A list with the following 3 components:
If parameter nbin
is not specified is set to pmax(25, rule.binning(x))
.