View source: R/hexify_cell_to_sf.R
| hexify_grid_global | R Documentation |
Creates hexagon polygons covering the entire Earth.
hexify_grid_global(area, aperture = 3L, resround = "nearest")
area |
Target cell area in km^2 |
aperture |
Grid aperture: 3, 4, or 7 |
resround |
Resolution rounding: "nearest", "up", or "down" |
sf object with hexagon polygons covering the globe
grid_global for the recommended S4 interface,
hexify_grid_rect for regional grids
Other sf conversion:
hex_corners_to_sf(),
hexify_cell_to_sf(),
hexify_grid_rect()
library(hexify)
library(sf)
# Coarse global grid (~100,000 km^2 cells)
global_grid <- hexify_grid_global(area = 100000)
plot(st_geometry(global_grid), border = "gray")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.