Skip to contents

Generate a terrain map

Usage

terrain_map(
  countries,
  adm0 = NULL,
  adm1 = NULL,
  add_neighbors = FALSE,
  add_labels = FALSE,
  mask = FALSE,
  terr = NULL
)

Arguments

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

Value

ggplot basemap

Examples

if (FALSE) {
library(gisr)
gisr::terrain_map(countries = list("Zambia"))
gisr::terrain_map(countries = list("Zambia"), add_neighbors = TRUE)
}