# \donttest{
# Plot grid over France
france <- hexify_world[hexify_world$name == "France", ]
grid <- hex_grid(area_km2 = 2000)
plot_grid(france, grid)
# Customize colors
plot_grid(france, grid,
grid_fill = "coral", grid_alpha = 0.5,
boundary_fill = "lightyellow")
# Keep only complete hexagons
plot_grid(france, grid, crop = FALSE)
# Add ggplot2 customizations
library(ggplot2)
plot_grid(france, grid) +
labs(subtitle = "ISEA3H Discrete Global Grid") +
theme_void()
# }
Run the code above in your browser using DataLab