Produces a cross section location map for the specified cross section.

map_xs(
  cross_section,
  xs_number,
  dem,
  channel = NULL,
  floodplain = NULL,
  extent_factor = 1
)

Arguments

cross_section

sf; A cross section lines feature class.

xs_number

integer; The cross section identifier of the requested cross section.

dem

terra SpatRaster; A dem raster.

channel

sf; A channel polygon feature class (optional).

floodplain

sf; A floodplain polygon feature class (optional).

extent_factor

numeric; A numeric value used to expand the map extent around each cross section.

Value

a tmap object