
Create either a rectangular or hexagonal two-dimensional grid
Source:R/create_grid.R
hotspot_grid.RdCreate either a rectangular or hexagonal two-dimensional grid
Arguments
- data
sfdata frame.- cell_size
numericvalue specifying the size of each equally spaced grid cell, using the same units (metres, degrees, etc.) as used in thesfdata frame given in thedataargument. If this argument isNULL(the default), the cell size will be calculated automatically (see Details).- grid_type
characterspecifying whether the grid should be made up of squares ("rect", the default) or hexagons ("hex").- quiet
if set to
TRUE, messages reporting the values of any parameters set automatically will be suppressed. The default isFALSE.- ...
Further arguments passed to
link[sf]{st_make_grid}.