Skip to contents

Creates hexagon polygons covering the entire Earth.

Usage

hexify_grid_global(area, aperture = 3L, resround = "nearest")

Arguments

area

Target cell area in km²

aperture

Grid aperture: 3, 4, or 7

resround

Resolution rounding: "nearest", "up", or "down"

Value

sf object with hexagon polygons covering the globe

See also

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()

Examples

if (FALSE) { # \dontrun{
library(hexify)
library(sf)

# Coarse global grid (~100,000 km² cells)
global_grid <- hexify_grid_global(area = 100000)
plot(st_geometry(global_grid), border = "gray")
} # }