terrain_map | R Documentation |
Generate a terrain map
terrain_map(
countries,
adm0 = NULL,
adm1 = NULL,
add_neighbors = FALSE,
add_labels = FALSE,
mask = FALSE,
terr = NULL
)
countries |
List of countries to map |
adm0 |
Admin 0 boundaries, optional sf geodata |
adm1 |
Admin 1 boundaries, optional sf geodata |
add_neighbors |
Should the map include the neighbor countries |
add_labels |
Add neighbors countries's names (works only when add_neighbors is TRUE) |
mask |
Should the extracted data match the exact boundary limits? |
terr |
RasterLayer dataset or Path for terrain raster file |
ggplot basemap
## Not run:
library(gisr)
gisr::terrain_map(countries = list("Zambia"))
gisr::terrain_map(countries = list("Zambia"), add_neighbors = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.