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
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

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

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
hexify_world
Simplified World 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 Earth 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

hexify-package
hexify
hexify-conversions
Coordinate Conversions
hexify-grid
Core Grid Construction
hexify-stats
Grid Statistics
`$`(<HexGridInfo>) names(<HexGridInfo>) show(<HexGridInfo>) as.list(<HexGridInfo>)
HexGridInfo S4 Methods
grid_info(<HexData>) cells(<HexData>) n_cells(<HexData>) nrow(<HexData>) ncol(<HexData>) dim(<HexData>) names(<HexData>) `$`(<HexData>) `$<-`(<HexData>) `[`(<HexData>) `[[`(<HexData>) `[[<-`(<HexData>,<ANY>,<missing>) show(<HexData>) as.data.frame(<HexData>) as.list(<HexData>)
HexData S4 Methods
new_hex_data()
Create a HexData Object (Internal)
extract_grid()
Extract grid from various objects
index_to_cell_internal()
Decode a cell index to face, i, j, and resolution
calculate_resolution_for_area()
Calculate resolution for target area
hexify_grid_to_HexGridInfo()
Convert legacy hexify_grid to HexGridInfo
HexGridInfo_to_hexify_grid()
Convert HexGridInfo to legacy hexify_grid