View source: R/gpat_create_grid.R
gpat_create_grid | R Documentation |
Creates a polygon of a GeoPAT 2 grid based on the grid header
gpat_create_grid(x, brick = FALSE)
x |
A filepath to the GeoPAT 2 grid header file |
brick |
TRUE/FALSE; should a new grid polygon have a brick topology |
sf
header_filepath = system.file("rawdata/Augusta2011_grid100.hdr", package="rgeopat2")
my_grid = gpat_create_grid(header_filepath)
my_grid_brick = gpat_create_grid(header_filepath, brick = TRUE)
plot(my_grid)
plot(my_grid_brick, add = TRUE, border = "red", lwd = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.