Package: hexify 0.9.0

hexify: Equal-Area Hex Grids on the Snyder ISEA Icosahedron

Provides functions to build and use hexagonal discrete global grids using the Icosahedral Snyder Equal Area ('ISEA') projection (Snyder 1992 <doi:10.3138/27H7-8K88-4882-1752>) and the 'H3' hierarchical hexagonal system (Uber Technologies). Implements the 'ISEA' discrete global grid system (Sahr, White and Kimerling 2003 <doi:10.1559/152304003100011090>) and the 'Hex9' octahedral grid (Griffin 2026 <arxiv:2608.00022>). Includes a fast C++ core for 'ISEA' projection and aperture quantization, an included 'H3' v4.4.1 C library for native 'H3' grid operations, and 'sf'/'terra'-compatible R wrappers for grid generation and coordinate assignment. Output is compatible with 'dggridR' for interoperability.

Authors:Gilles Colling [aut, cre, cph], Uber Technologies, Inc. [ctb, cph], Ben Griffin [ctb, cph]

hexify_0.9.0.tar.gz
hexify_0.9.0.zip(r-4.7-x86_64)hexify_0.9.0.zip(r-4.7-arm64)hexify_0.9.0.zip(r-4.6-x86_64)hexify_0.9.0.zip(r-4.6-arm64)hexify_0.9.0.zip(r-4.5-x86_64)
hexify_0.8.4.tgz(r-4.6-x86_64)hexify_0.8.4.tgz(r-4.6-arm64)hexify_0.8.4.tgz(r-4.5-x86_64)hexify_0.8.4.tgz(r-4.5-arm64)
hexify_0.8.4.tar.gz(r-4.7-arm64)hexify_0.8.4.tar.gz(r-4.7-x86_64)hexify_0.8.4.tar.gz(r-4.6-arm64)hexify_0.9.0.tar.gz(r-4.6-x86_64)
hexify_0.8.4.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
hexify/json (API)

# Install 'hexify' in R:
install.packages('hexify', repos = c('https://gcol33.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/gcol33/hexify/issues

Pkgdown/docs site:https://gillescolling.com

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:

On CRAN:

Conda:

dggsdiscrete-global-gridequal-areageospatialgishexagonal-gridicosahedral-gridicosahedroniseaspatialspatial-analysiscpp

6.66 score 1 stars 1 packages 34 scripts 290 downloads 113 exports 14 dependencies

Last updated from:c268c7168f. Checks:9 FAIL, 4 OK, 2 ERROR. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64FAIL94
linux-devel-x86_64FAIL130
source / vignettesOK279
linux-release-arm64FAIL95
linux-release-x86_64FAIL153
macos-release-arm64FAIL108
macos-release-x86_64FAIL204
macos-oldrel-arm64FAIL112
macos-oldrel-x86_64FAIL158
windows-devel-arm64ERROR424
windows-devel-x86_64OK880
windows-release-arm64ERROR385
windows-release-x86_64OK1164
windows-oldrel-x86_64OK968
wasm-releaseFAIL121

Exports:as_dggridas.data.frameas.listcell_areacell_metricscell_to_indexcell_to_lonlatcell_to_sfcellsdg_closest_res_to_areadgearthstatdggrid_43h_sequencedggrid_is_compatibledggrs_definitiondgverifyfrom_dggridget_childrenget_neighborsget_parentget_siblingsglobe_centersgrid_clipgrid_globalgrid_infogrid_recth3_crosswalkhex_aggregatehex_browsehex_compacthex_corners_to_sfhex_distancehex_extracthex_globehex_globe_pnghex_gridhex_rayshex_samplehex_smoothhex_summarizehex_triangleshex_uncompacthex_zonalhex9_warp_downloadhexifyhexify_area_to_eff_reshexify_assignhexify_build_icosahexify_cell_to_icosa_trihexify_cell_to_indexhexify_cell_to_lonlathexify_cell_to_planehexify_cell_to_quad_ijhexify_cell_to_quad_xyhexify_cell_to_sfhexify_compare_indiceshexify_compare_resolutionshexify_default_index_typehexify_eff_res_to_areahexify_eff_res_to_resolutionhexify_face_centershexify_forwardhexify_forward_to_facehexify_get_childrenhexify_get_parenthexify_get_resolutionhexify_gridhexify_grid_cell_to_lonlathexify_grid_globalhexify_grid_recthexify_grid_to_cellhexify_heatmaphexify_icosa_tri_to_planehexify_icosa_tri_to_quad_ijhexify_icosa_tri_to_quad_xyhexify_index_to_cellhexify_index_to_lonlathexify_inversehexify_is_valid_index_typehexify_lonlat_to_cellhexify_lonlat_to_indexhexify_lonlat_to_planehexify_lonlat_to_quad_ijhexify_quad_ij_to_cellhexify_quad_ij_to_icosa_trihexify_quad_ij_to_xyhexify_quad_xy_to_cellhexify_quad_xy_to_icosa_trihexify_resolution_to_eff_reshexify_roundtrip_testhexify_which_facehexify_z7_canonicalimport_h3index_to_cellis_hex_datais_hex_gridis_pentagonlonlat_to_celln_cellsncolnet_cellsnet_layoutnet_projectnrowplotplot_gridplot_worldprojection_distortionprojection_stagesshowst_as_sfst_crssummarywall_metrics

Dependencies:bitbit64classclassIntDBIe1071KernSmoothproxyRcpprlangs2sfunitswk

H3 Grid Support
Installation | What is H3? | Getting Started | Choosing Resolution by Area | Grid Generation | Rectangular Region | Clipping to a Boundary | Hierarchical Navigation | Parents | Children | Visualizing the Hierarchy | Working with H3 Data | ISEA--H3 Crosswalk | ISEA vs H3: When to Use Which | Resolution Reference | See Also

Last update: 2026-10-11
Started: 2026-02-27

Mathematical Foundations
Installation | Overview | The Problem: Equal-Area Grids on a Sphere | The Lambert Azimuthal Equal-Area Projection | Definition | Forward Formulas | Equal-Area Proof | Inverse Formulas | Limitations | The Icosahedron | Geometry | Vertex Latitude Derivation | Standard ISEA Orientation | Snyder's ISEA Projection | Key Constants | Forward Projection Steps | The Inverse Projection | Distortion | The Truncated Icosahedron | The Earth as an Ellipsoid | The Unfolded Projection | Aperture and Resolution | Aperture Properties | How a Cell Divides Among Its Parents | Cell Count Growth | Orientation Classes | Pentagon Cells | Coordinate Systems and Indexing | Triangle to Quad | Quad IJ: The Integer Lattice | Hierarchical Index Types | Z7 Index (Aperture 7) | Z7 as a 64-bit integer | OGC zone identifiers | Neighbours by digit arithmetic | Z3 Index (Aperture 3) | Z-Order Index (Morton Curve) | Index Type Comparison | SEQNUM: The Flat Cell ID | Compact uint64 Storage | H3 Comparison | Architecture | The Area Variation Trade-Off | Resolution Mapping | When to Use Which | Round-Trip Accuracy | Summary of ISEA Properties | References

Last update: 2026-10-11
Started: 2025-12-12

Practical Workflows
Installation | One Grid, Many Datasets | The Problem | The Solution: Shared Grid Objects | Combining at the Cell Level | Grid Generation | Grid Over a Rectangular Region | Grid Over a Polygon (Shapefile) | Global Grid | Multi-Resolution Analysis | Scale-Dependent Patterns | Spatial Joins | Cell-Level Aggregation and Neighbors | Choosing Resolution | By Target Area | Resolution Table (Aperture 3) | Comparing Apertures | Grids on Other Bodies | Coordinates on another body | Working with sf | Convert HexData to sf | Visualize with ggplot2 | Export to GIS Formats | Edge Cases | Handling NA Coordinates | Polar Regions | Date Line | Function Summary | See Also

Last update: 2026-10-11
Started: 2025-12-12

Quick Start
Installation | Spatial Analysis Done Right | Basic Usage | Accessing HexData | With sf Objects | Real-World Example: Species Occurrence Data | Assign Points to Grid Cells | Generate Cell Polygons and Visualize | Species Richness Map | Core Concepts | HexGridInfo Slots | HexData Slots | Caveats | Pentagon Cells | Multi-Scale Analysis | Integer Limits | See Also

Last update: 2026-10-11
Started: 2025-12-12

Visualization
Installation | Sample Data | Base R Plotting with plot() | Basic Plot | Customizing Colors and Styling | Disabling the Basemap | Setting Map Extent | Showing Points | Basic Points | Point Size Presets | Custom Point Styling | Disabling Jitter | ggplot2 with hexify_heatmap() | Basic ggplot | Customizing with ggplot2 | Adding Custom Layers | Heatmaps with Value Mapping | Creating Aggregated Data | Basic Heatmap | Customizing Colors | Basemap Options | World Map Helper | Customizing the World Map | Pentagon Cell Visualization | Cell Shapes | Random Sampling Visualization | Building Custom Visualizations | Function Reference | See Also

Last update: 2026-10-11
Started: 2025-12-17

Readme and manuals

Help Manual

Help pageTopics
hexify: Equal-Area Hex Grids on the Snyder ISEA Icosahedronhexify-package
Convert hexify Grid to 'dggridR'-compatible Grid Objectas_dggrid format.dggs print.dggs
Compute Per-Cell Area in km²cell_area
Shape Metrics of Cells: Area, Perimeter and Compactnesscell_metrics
Convert Cell ID to Longitude/Latitudecell_to_lonlat
Convert Cell IDs to sf Polygonscell_to_sf
Get Cell IDscells
Get Grid Statistics for Whole-Body Coveragedgearthstat
Validate 'dggridR' Grid Compatibility with hexifydggrid_is_compatible
Definition of a Grid as a Discrete Global Grid Reference Systemdggrs_definition
Convert 'dggridR' Grid Object to hexify_gridfrom_dggrid
Get Neighboring Cellsget_neighbors
Globe Center Presetsglobe_centers
Clip Hexagon Grid to Polygon Boundarygrid_clip
Generate a Global Hexagon Gridgrid_global
Get Grid Specificationgrid_info
Generate a Rectangular Grid of Hexagonsgrid_rect
Crosswalk Between ISEA and H3 Cell IDsh3_crosswalk
Aggregate Cell Values to a Coarser Resolutionhex_aggregate
Interactive Hex Maphex_browse
Compact Hex Cellshex_compact
Grid Distance Between Cellshex_distance
Extract Raster Values at Hex Cell Centershex_extract
Interactive Globe of a Gridhex_globe
Save a Globe as a PNG Imagehex_globe_png
Create a Hexagonal Grid Specificationhex_grid
Ray Glyphs for Cell Valueshex_rays
Random Points Inside Cellshex_sample
Smooth Cell Values Over Neighbouring Cellshex_smooth
Summarize Data by Hex Cellhex_summarize
The Triangles of Cells Towards Each Neighbourhex_triangles
Uncompact Hex Cellshex_uncompact
Zonal Statistics for Hex Cellshex_zonal
Download Hex9's Warp Fieldhex9_warp_download
HexData Class$,HexData-method $<-,HexData-method as.data.frame,HexData-method as.list,HexData-method as_tibble.HexData cells,HexData-method dim,HexData-method grid_info,HexData-method HexData-class names,HexData-method ncol,HexData-method nrow,HexData-method n_cells,HexData-method plot,HexData,missing-method print.hexify_data_summary show,HexData-method st_as_sf.HexData st_crs.HexData summary,HexData-method [,HexData-method [[,HexData-method [[<-,HexData,ANY,missing-method
HexGridInfo Class$,HexGridInfo-method as.list,HexGridInfo-method HexGridInfo-class names,HexGridInfo-method n_cells,HexGridInfo-method plot,HexGridInfo,missing-method print.hexify_grid_summary show,HexGridInfo-method st_as_sf.HexGridInfo st_crs.HexGridInfo summary,HexGridInfo-method
Assign Hexagonal DGGS Cell IDs to Geographic Pointshexify
Create a ggplot2 Visualization of Hexagonal Grid Cellshexify_heatmap
Simplified World Maphexify_world
Import External H3 Cell IDs into hexifyimport_h3
Check If an Object Is a HexDatais_hex_data
Check If an Object Is a HexGridInfois_hex_grid
Detect Pentagon Cellsis_pentagon
Convert Longitude/Latitude to Cell IDlonlat_to_cell
Get Number of Cellsn_cells
The Parts of Cells on a Net Layoutnet_cells
Lay Out the Faces of a Grid's Solid in the Planenet_layout
Place Points on a Net Layoutnet_project
Plot Hexagonal Grid Clipped to a Polygon Boundaryplot_grid
Quick World Map Plotplot_world
Distortion of a Grid's Face Projectionprojection_distortion
Points Through the Steps of Snyder's Projectionprojection_stages
Spacing Metrics of Neighbouring Cells: Wall Length, Centre Distance and Cell Wall Midpoint Ratiowall_metrics