Learn R Programming

crawl (version 1.3-1)

crwUseGrid: Compute a spatial use grid from a crawl prediction

Description

This function take a crwPredict or crwIS object and a spatial GridTopology object from the 'sp' package and outputs the number of predicted locations in each grid cell

Usage

crwUseGrid(object, grid, rm.zeros = FALSE, subset = TRUE)

Arguments

object
A crwPredict object output from crwPredict or crwIS object from crwPostIS. The object MUST have been created using a set of prediction times (i.e
grid
A GridTopology object from the 'sp' package
rm.zeros
Logical. If set to true, the zeros in the use grid are set to NA for better plots. Use grids can have an overwhelming number of zeros.
subset
An indicator of which times should be used for calculation of the use grid. Can be a logical vector or a vector of integers, such as from a call to which

Value

  • A SpatialGridDataFrame with data column 'use' which gives the count of predicted (see the 'sp' package) locations within the grid cell