Create hexagonal grids
Arguments
- spdf
input spatial data frame
- size
size of each hex bin in meters, default set to 15K meters (15KM)
- clip
Should the output be cliped to the input boundaries? Default is TRUE
Examples
if (FALSE) {
library(gisr)
shp <- get_admin0(countries = "Nigeria")
get_hexbins(shp, 10000)
}