powered by
Forms grid cells centred on input points.
gridCells(x, cellsize = spacing(x), crs = NA)
A simple features (sf) object of class `sfc_MULTIPOLYGON'.
crs may be the integer EPSG code (e.g. 3578 Yukon Albers).
crs
matrix or dataframe with x- and y-coordinates
length of gridcell side
crs description suitable for st_crs
st_crs
The argument x will often be a traps or mask object with spacing attribute. Otherwise cellsize must be provided.
cellsize
See make.grid for jittered locations within grid cells.
make.grid
plotMaskEdge, spacing
plotMaskEdge
spacing
plot(gridCells(traps(captdata))) plot(traps(captdata), add = TRUE)
Run the code above in your browser using DataLab