R/grid_helpers.R
grid_rect.Rd
Creates hexagon polygons covering a rectangular geographic region.
grid_rect(bbox, grid)
Bounding box as c(xmin, ymin, xmax, ymax), or an sf/sfc object
A HexGridInfo object specifying the grid parameters
sf object with hexagon polygons
grid_global for global grids
grid_global
if (FALSE) { # \dontrun{ grid <- hex_grid(area_km2 = 5000) europe <- grid_rect(c(-10, 35, 30, 60), grid) plot(europe) } # }