Skip to contents

Create hexagonal grids

Usage

get_hexbins(spdf, size = 15000, clip = TRUE)

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

Value

country hex polygon as feature class

Examples

if (FALSE) {
 library(gisr)

 shp <- get_admin0(countries = "Nigeria")

 get_hexbins(shp, 10000)
}