Skip to content
/ hexify Public

Equal-area hexagonal discrete global grids using the Snyder ISEA projection. Fast C++ core with sf/terra integration.

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

gcol33/hexify

Repository files navigation

hexify

CRAN status CRAN downloads R-CMD-check Codecov test coverage License: MIT

Equal-area hexagonal grids for spatial analysis

Assign geographic points to hexagonal cells using the ISEA discrete global grid system. All cells have the same area regardless of latitude.

Installation

# install.packages("pak")
pak::pak("gcol33/hexify")

Quick Start

library(hexify)

# Your data
cities <- data.frame(
  name = c("Vienna", "Paris", "Madrid"),
  lon = c(16.37, 2.35, -3.70),
  lat = c(48.21, 48.86, 40.42)
)

# Create a grid and assign points
grid <- hex_grid(area_km2 = 10000)
result <- hexify(cities, lon = "lon", lat = "lat", grid = grid)

# Visualize
plot(result)

Key Features

  • Equal-area cells: No latitude distortion
  • Simple workflow: Define grid once, reuse everywhere
  • Fast C++ core: Handles millions of points
  • sf integration: Works with any CRS
  • dggridR compatible: Same cell IDs for interoperability

Learn More

Support

"Software is like sex: it's better when it's free." — Linus Torvalds

I'm a PhD student who builds R packages in my free time because I believe good tools should be free and open. I started these projects for my own work and figured others might find them useful too.

If this package saved you some time, buying me a coffee is a nice way to say thanks. It helps with my coffee addiction.

Buy Me A Coffee

License

MIT

About

Equal-area hexagonal discrete global grids using the Snyder ISEA projection. Fast C++ core with sf/terra integration.

Topics

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •