Description Usage Arguments Value Examples
get_boundary draws the geographical boundary of a specified region from GADM. It takes in a vector of region name and returns a spatial polygon outlining the region.
1 | get_boundary(region)
|
region |
region name stored in a vector (vector length depends on the granularity level of the region, from national level down to county level, i.e. c(“USA”), c(“USA”,“Pennsylvania”), c(“USA ”,“Pennsylvania”, “Allegheny”)), and |
a spatial polygon outlining the region
1 2 3 4 5 6 7 | # Plotting the region of Pennsylvania
PA <- get_boundary(c("USA", "Pennsylvania"))
plot(PA)
# Plotting the environment conditions for Pennsylvania
PA_environment_6 <- mask(crop(environment_data[[6]], PA), PA)
plot(PA_environment_6)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.