flow_plot: Create plots of water flow

Description Usage Arguments

View source: R/LITAP_plot.R

Description

Plots water flow and watersheds. See the flow_plot article/vignette for examples.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
flow_plot(
  db,
  type = "relief",
  dir = FALSE,
  seqno = FALSE,
  highlight = FALSE,
  shed = FALSE,
  shed_type = "local",
  pits = FALSE,
  upslope_threshold = NULL,
  cells = NULL,
  clim = NULL,
  rlim = NULL,
  stats = NULL,
  missing = NA
)

Arguments

db

Data frame. Cell by cell data on the elevation of the watershed. Output by LITAP's flow_mapper() function.

type

Character. Either relief or elevation. Defaults to relief.

dir

Logical. Include flow directions?

seqno

Logical. Include cell numbering?

highlight

Logical. Highlight selected cells?

shed

Logical. Show watersheds?

shed_type

Character. Which type of watershed, must be included as a column in the data frame. Can be one of 'initial', 'local', 'fill', 'inv_initial', or 'inv_local'/'inverted'.

pits

Logical. Show watershed pits (lowest point)

upslope_threshold

Numeric. If dir = TRUE, only show flow directions for cells with >= this many cells which drain to it.

cells

Vector. Which cells to show

clim

Numeric vector. Column limits in format c(0, 100)

rlim

Numeric vector. Row limits in format c(0, 100)

stats

Data frame. Data frame of watershed stats to highlight pour points.

missing

Character. What is the value of missing data? Defaults to NA


steffilazerte/LITAP documentation built on Feb. 9, 2022, 8:11 a.m.