Learn R Programming

hexify (version 0.3.8)

grid_global: Generate a global hexagon grid

Description

Creates hexagon polygons covering the entire Earth.

Usage

grid_global(grid)

Value

sf object with hexagon polygons

Arguments

grid

A HexGridInfo object specifying the grid parameters

Details

This function generates a complete global grid by sampling points densely across the globe. For large grids (many small cells), consider using grid_rect() to generate regional subsets.

See Also

grid_rect for regional grids

Examples

Run this code
# Coarse global grid
grid <- hex_grid(area_km2 = 100000)
global <- grid_global(grid)
plot(global)

Run the code above in your browser using DataLab