terrain_map: Generate a terrain map

View source: R/terrain_map.R

terrain_mapR Documentation

Generate a terrain map

Description

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

## Not run: 
library(gisr)
gisr::terrain_map(countries = list("Zambia"))
gisr::terrain_map(countries = list("Zambia"), add_neighbors = TRUE)

## End(Not run)


USAID-OHA-SI/gisr documentation built on Feb. 10, 2024, 8:55 p.m.