powered by
Creates hexagon polygons covering a rectangular geographic region.
grid_rect(bbox, grid)
sf object with hexagon polygons
Bounding box as c(xmin, ymin, xmax, ymax), or an sf/sfc object
A HexGridInfo object specifying the grid parameters
grid_global for global grids
grid_global
grid <- hex_grid(area_km2 = 5000) europe <- grid_rect(c(-10, 35, 30, 60), grid) plot(europe)
Run the code above in your browser using DataLab