View source: R/make_base_grid.R
make_base_grid | R Documentation |
Create a Base Sampling Grid for Use in Multiple Projects
make_base_grid( dir.out = NULL, overwrite = FALSE, countries = c("US", "CA"), states = NULL, crs.target = 4326, hexagonal = TRUE, grid.size = 0.5, conterminousUSA = TRUE, ... )
dir.out |
Where to save the resulting grid (as .RDS). |
overwrite |
TRUE will overwrite existing |
countries |
Vector of countries. Defaults to a base map of USA and CAN, unless arg |
states |
Vector of states to which the spatial grid will be clipped. Must be specified using ISO 3166-2 (see https://en.wikipedia.org/wiki/ISO_3166-2) |
crs.target |
Target CRS number for spatial grid. |
hexagonal |
logical if TRUE will produce a spatial grid with hexagonal, as opposed to rectangular, cells |
grid.size |
numeric size (relative to units defining crs.target) of resulting cell. E.g., if crs.target==4326 a value of gridsize=1.0 equals ~111.11km |
conterminousUSA |
logical if TRUE will remove Hawaii and Alaska. Default TRUE to reduce computation times and extent of sptaial grid. |
... |
Additional arguments |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.