The goal of cahexgrids is to provides a hierarchical geospatial hexagonal grid indexing system for Central America
Hexagonal grid resolution are 4, 5, 6, 7 y 8 (based in H3
You can install the development version of cahexgrids from GitHub with:
# install.packages("devtools")
devtools::install_github("ManuelSpinola/cahexgrids")
This is a basic example which shows you how to use cahexgrids:
library(tidyverse)
library(sf)
library(cahexgrids)
ggplot(ca_hex_grid_res_4) +
geom_sf(fill = "dodgerblue3", color = "gray") +
theme_minimal()
ggplot(ca_hex_grid_res_5) +
geom_sf(fill = "dodgerblue3", color = "gray") +
theme_minimal()
ggplot(ca_hex_grid_res_6) +
geom_sf(fill = "dodgerblue3", color = "gray") +
theme_minimal()