get_grids | R Documentation |
Create square grids
get_grids(spdf, size = 15000, clip = TRUE)
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 |
country hex polygon as feature class
## Not run:
library(gisr)
shp <- get_admin0(countries = "Nigeria")
get_grids(shp, 10000)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.