make_grid | R Documentation |
Make grid
make_grid(
x,
hexagonal = TRUE,
cell_area,
clip = FALSE,
grid_boundary = FALSE,
tolerance = NULL
)
x |
Object of class |
hexagonal |
|
cell_area |
|
clip |
|
grid_boundary |
|
tolerance |
|
Returns a class object sf
with a hexagonal or square polygon grid.
## Not run:
library(Makurhini)
library(sf)
data("study_area", package = "Makurhini")
test <- make_grid(x = study_area, hexagonal = TRUE,
cell_area = unit_convert(10, "km2", "m2"))
plot(test)
test <- make_grid(x = study_area, hexagonal = TRUE,
cell_area = unit_convert(10, "km2", "m2"),
clip = TRUE)
plot(test)
test <- make_grid2(x = study_area, hexagonal = TRUE,
cell_area = unit_convert(10, "km2", "m2"),
grid_boundary = TRUE)
plot(st_geometry(study_area)); plot(test, add = T)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.