Package: hexify 0.7.1

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

Provides functions to build and use hexagonal discrete global grids using the 'Snyder' '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>). 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]

hexify_0.7.1.tar.gz
hexify_0.7.1.zip(r-4.7)hexify_0.7.1.zip(r-4.6)hexify_0.7.1.zip(r-4.5)
hexify_0.7.1.tgz(r-4.6-x86_64)hexify_0.7.1.tgz(r-4.6-arm64)hexify_0.7.1.tgz(r-4.5-x86_64)hexify_0.7.1.tgz(r-4.5-arm64)
hexify_0.7.1.tar.gz(r-4.7-arm64)hexify_0.7.1.tar.gz(r-4.7-x86_64)hexify_0.7.1.tar.gz(r-4.6-arm64)hexify_0.7.1.tar.gz(r-4.6-x86_64)
hexify_0.7.1.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

5.86 score 29 scripts 131 downloads 100 exports 13 dependencies

Last updated from:f284216848. Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK211
linux-devel-x86_64OK201
source / vignettesOK312
linux-release-arm64OK195
linux-release-x86_64OK219
macos-release-arm64OK135
macos-release-x86_64OK406
macos-oldrel-arm64OK164
macos-oldrel-x86_64OK448
windows-develOK216
windows-releaseOK211
windows-oldrelOK217
wasm-releaseOK181

Exports:as_dggridas_sfas_tibble.HexDataas.data.frameas.listcell_areacell_to_indexcell_to_lonlatcell_to_sfcellsdg_closest_res_to_areadgearthstatdggrid_43h_sequencedggrid_is_compatibledgverifyfrom_dggridget_childrenget_neighborsget_parentglobe_centersgrid_clipgrid_globalgrid_infogrid_recth3_crosswalkhex_browsehex_compacthex_corners_to_sfhex_distancehex_extracthex_gridhex_summarizehex_uncompacthex_zonalhexifyhexify_area_to_eff_reshexify_assignhexify_build_icosahexify_cell_id_to_quad_ijhexify_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_precisionhexify_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_projection_statshexify_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_set_precisionhexify_set_verbosehexify_which_facehexify_z7_canonicalimport_h3is_hex_datais_hex_gridis_pentagonlonlat_to_celln_cellsncolnrowplotplot_globeplot_gridplot_worldshow

Dependencies:classclassIntDBIe1071KernSmoothMASSproxyRcpprlangs2sfunitswk

Mathematical Foundations
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 | Aperture and Resolution | Aperture Properties | 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) | 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-03-01
Started: 2025-12-12

H3 Grid Support
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-02-28
Started: 2026-02-27

Practical Workflows
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 | Choosing Resolution | By Target Area | Resolution Table (Aperture 3) | Comparing Apertures | 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-02-28
Started: 2025-12-12

Visualization
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 | Random Sampling Visualization | Building Custom Visualizations | Function Reference | See Also

Last update: 2026-02-28
Started: 2025-12-17

Quick Start
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-02-27
Started: 2025-12-12

Readme and manuals

Help Manual

Help pageTopics
hexifyhexify-package
Convert hexify grid to 'dggridR'-compatible grid objectas_dggrid
Convert HexData to sf Objectas_sf
Convert HexData to tibbleas_tibble.HexData
Compute per-cell area in km²cell_area
Convert cell ID to longitude/latitudecell_to_lonlat
Convert cell IDs to sf polygonscell_to_sf
Get Cell IDscells
Get grid statistics for Earth coveragedgearthstat
Validate 'dggridR' grid compatibility with hexifydggrid_is_compatible
Verify grid objectdgverify
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
Interactive Hex Maphex_browse
Compact Hex Cellshex_compact
Grid Distance Between Cellshex_distance
Extract Raster Values at Hex Cell Centershex_extract
Create a Hexagonal Grid Specificationhex_grid
Summarize Data by Hex Cellhex_summarize
Uncompact Hex Cellshex_uncompact
Zonal Statistics for Hex Cellshex_zonal
HexData ClassHexData-class
HexGridInfo ClassHexGridInfo-class
Assign hexagonal DGGS cell IDs to geographic pointshexify
Initialize icosahedron geometryhexify_build_icosa
Compare grid resolutionshexify_compare_resolutions
Get icosahedron face centershexify_face_centers
Forward Snyder projectionhexify_forward
Forward projection to specific facehexify_forward_to_face
Get current precision settingshexify_get_precision
Create a hexagonal grid specificationhexify_grid
Create a ggplot2 visualization of hexagonal grid cellshexify_heatmap
Inverse Snyder projectionhexify_inverse
Get inverse projection statisticshexify_projection_stats
Round-trip accuracy testhexify_roundtrip_test
Set inverse projection precisionhexify_set_precision
Set verbose mode for inverse projectionhexify_set_verbose
Determine which face contains a pointhexify_which_face
Simplified World Maphexify_world
Coordinate Conversionshexify-conversions
Core Grid Constructionhexify-grid
Grid Statisticshexify-stats
Import External H3 Cell IDs into hexifyimport_h3
Check if object is HexDatais_hex_data
Check if object is HexGridInfois_hex_grid
Detect Pentagon Cellsis_pentagon
Convert longitude/latitude to cell IDlonlat_to_cell
Get Number of Cellsn_cells
Plot hexagonized globeplot_globe
Plot hexagonal grid clipped to a polygon boundaryplot_grid
Quick world map plotplot_world
Plot HexData objectsplot,HexData,missing-method