Skip to contents

Core

Create grids and assign points to cells

hex_grid()
Create a Hexagonal Grid Specification
hexify()
Assign hexagonal DGGS cell IDs to geographic points
hexify_assign()
Assign hex cells ('ISEA3H', aperture 3) for lon/lat
HexGridInfo-class
HexGridInfo Class
HexData-class
HexData Class

Working with Results

Extract and convert HexData

grid_info()
Get Grid Specification
st_crs(<HexGridInfo>) st_crs(<HexData>)
Coordinate reference system of a grid
cells()
Get Cell IDs
n_cells()
Get Number of Cells
as_sf()
Convert HexData to sf Object
as_tibble.HexData()
Convert HexData to tibble
is_hex_grid()
Check if object is HexGridInfo
is_hex_data()
Check if object is HexData
hex_summarize()
Summarize Data by Hex Cell
hex_zonal()
Zonal Statistics for Hex Cells
hex_extract()
Extract Raster Values at Hex Cell Centers

Grid Generation

Create grids over regions

grid_rect()
Generate a rectangular grid of hexagons
grid_global()
Generate a global hexagon grid
grid_clip()
Clip hexagon grid to polygon boundary
cell_to_sf()
Convert cell IDs to sf polygons
lonlat_to_cell()
Convert longitude/latitude to cell ID
cell_to_lonlat()
Convert cell ID to longitude/latitude
get_parent()
Get parent cell
get_children()
Get children cells

Cell Operations

Relations between cells and cell sets

get_neighbors()
Get Neighboring Cells
hex_distance()
Grid Distance Between Cells
is_pentagon()
Detect Pentagon Cells
hex_compact()
Compact Hex Cells
hex_uncompact()
Uncompact Hex Cells

H3 Interoperability

Cross-grid mapping and per-cell area

h3_crosswalk()
Crosswalk Between ISEA and H3 Cell IDs
cell_area()
Compute per-cell area in km²
import_h3()
Import External H3 Cell IDs into hexify

Visualization

Plotting functions

hexify_heatmap()
Create a ggplot2 visualization of hexagonal grid cells
plot_grid()
Plot hexagonal grid clipped to a polygon boundary
plot_world()
Quick world map plot
plot_globe()
Plot hexagonized globe
hexify_world
Simplified World Map
globe_centers
Globe center presets
hex_browse()
Interactive Hex Map
plot(<HexData>,<missing>)
Plot HexData objects

dggridR Compatibility

Interoperability with dggridR

as_dggrid()
Convert hexify grid to 'dggridR'-compatible grid object
from_dggrid()
Convert 'dggridR' grid object to hexify_grid
dggrid_is_compatible()
Validate 'dggridR' grid compatibility with hexify
dggrid_43h_sequence()
Create DGGRID 43H aperture sequence
hexify_grid()
Create a hexagonal grid specification
dgearthstat()
Get grid statistics for whole-body coverage
dgverify()
Verify grid object
hexify_compare_resolutions()
Compare grid resolutions

Low-Level API

Direct access to projection and coordinate transforms

hexify_forward()
Forward Snyder projection
hexify_forward_to_face()
Forward projection to specific face
hexify_inverse()
Inverse Snyder projection
hexify_which_face()
Determine which face contains a point
hexify_build_icosa()
Initialize icosahedron geometry
hexify_face_centers()
Get icosahedron face centers
hexify_grid_rect()
Generate a rectangular grid of hexagon polygons
hexify_grid_global()
Generate a global grid of hexagon polygons
hexify_grid_to_cell()
Convert longitude/latitude to cell ID using a grid object
hexify_grid_cell_to_lonlat()
Convert cell ID to longitude/latitude using a grid object
hex_corners_to_sf()
Build an sf POLYGON from six (lon, lat) corner pairs
hexify_projection_stats()
Get inverse projection statistics
dg_closest_res_to_area()
Find closest resolution for target cell area
hexify_area_to_eff_res()
Convert area to effective resolution
hexify_eff_res_to_area()
Convert effective resolution to area
hexify_eff_res_to_resolution()
Convert effective resolution to index resolution
hexify_resolution_to_eff_res()
Convert index resolution to effective resolution
hexify_compare_indices()
Compare two indices
hexify_default_index_type()
Get default index type for aperture
hexify_is_valid_index_type()
Check if index type is valid for aperture
cell_to_index()
Convert cell ID to hierarchical index string
hexify_get_children()
Get children indices
hexify_get_parent()
Get parent index
hexify_get_precision()
Get current precision settings
hexify_get_resolution()
Get index resolution
hexify_set_precision()
Set inverse projection precision
hexify_z7_canonical()
Get canonical form of Z7 index
hexify_roundtrip_test()
Round-trip accuracy test
hexify_set_verbose()
Set verbose mode for inverse projection

Internal

Package internals