vis_dem: Visualize dem and facc files

Description Usage Arguments Value Author(s) See Also Examples

Description

Visualize mHM elevation input data: dem (Digital Elevation Model) and facc (Flow Accumulation, rivers modeled from DEM)

Usage

1
2
3
4
vis_dem(dem, proj = NA, col = demPal(1.02), rivcol = rivPal(n = 150),
  rasterriv = FALSE, prop = 0.98, pch = 15, cex = c(0.14, 0.25),
  add = FALSE, legend = TRUE, title = "Elevation", quiet = FALSE,
  rivargs = NULL, ...)

Arguments

dem

List returned by read_dem or character string giving a directory (passed to read_dem).

proj

Projection passed to read_asc. DEFAULT: NA

col

DEM color palette. DEFAULT: demPal(1.02)

rivcol

River color palette. NA will be prepended if rasterriv=TRUE. DEFAULT: rivPal(n=150)

rasterriv

Logical: should river be added as raster (with vis_asc) instead of lines (with vis_river)? Useful to examine single cells exactly. DEFAULT: FALSE

prop

Proportion of non-river, see vis_river. If rasterriv=TRUE, adjust river length with the number of colors in rivcol. DEFAULT prop: 0.98

pch, cex

Point type + size for colPoints. Only used if dem$proj != NA. Can each be two values (DEM + FACC separately). DEFAULT: pch=15, cex=c(0.14, 0.25)

add

Logical: add to existing plot? DEFAULT: FALSE

legend

Logical: add colPointsLegend? DEFAULT: TRUE

title

Character string for legend title. DEFAULT: "Elevation"

quiet

Logical: should progress messages be suppressed? DEFAULT: FALSE

rivargs

List of arguments passed to vis_asc or vis_river for FACC.

...

Further arguments passed to vis_asc for DEM, like overwrite=TRUE.

Value

Invisible list dem or read_dem result

Author(s)

Berry Boessenkool, berry-b@gmx.de, Feb-March 2017

See Also

read_dem, vis_asc for plotting any asc file

Examples

1
# to be added

brry/mhmVis documentation built on May 13, 2019, 7:53 a.m.