Skip to contents

Locate

Move between coordinates and cells.

point_to_cell()
Convert points to cells
cell_center()
Return cell centers
cell_boundary()
Return cell boundary rings

Neighborhoods

Find nearby cells and measure grid distance.

cell_neighbors()
Return immediate cell neighbors
cell_disk()
Return cells within grid distance k
cell_ring()
Return cells at exactly grid distance k
cell_distance()
Return shortest neighbor-graph distance

Hierarchy

Move up and down resolutions.

cell_parent()
Return cell ancestors
cell_children()
Return cell descendants
cell_aggregate()
Aggregate values to hierarchical ancestors

Mapping

Build lazy cell tables and draw them.

hex_data()
Construct lazily geometric global-hex data
plot(<globalhex_data>)
Plot global-hex values with hierarchical level of detail
plot_resolution()
Choose a display resolution for global-hex data
st_as_sf(<globalhex_cell>)
Convert cells to sf polygons

Rasters and polygons

Move raster and vector data onto cells.

raster_to_cell()
Convert a raster footprint to global-hex data
cell_extract()
Extract raster summaries into cells
cell_sample()
Sample raster values at cell centers
cell_cover()
Cover polygons with cells

Grids and cells

Create grids and inspect cell vectors.

hex_grid()
Define a global hexagonal grid
as_globalhex_cell()
Construct a globalhex cell vector
cell_resolution()
Return cell resolution
cell_grid()
Return the grid attached to cells
cell_is_valid()
Check cell identifiers
globalhex_info()
Report the local globalhex environment
globalhex globalhex-package
globalhex: Equal-area hierarchical global cells

Legacy

Interoperate with dggridR and sequence numbers.

legacy_grid()
Define the explicit legacy dggridR fallback
as_dggridR_dggs()
Convert to a low-level dggridR grid
as_seqnum()
Convert hierarchical cells to sequence numbers