plot.rivernetwork: Plotting a River Network

Description Usage Arguments Note Author(s) Examples

View source: R/riverdist_1.R

Description

S3 plotting method for the rivernetwork-class. Produces a map of all river segments of a river network object.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## S3 method for class 'rivernetwork'
plot(
  x,
  segmentnum = TRUE,
  offset = TRUE,
  lwd = 1,
  cex = 0.6,
  scale = TRUE,
  color = TRUE,
  empty = FALSE,
  linecol = 1,
  xlab = "",
  ylab = "",
  ...
)

Arguments

x

The river network object to plot

segmentnum

Whether or not to plot segment numbers (defaults to TRUE)

offset

Whether to offset segment numbers from lines (defaults to TRUE)

lwd

Line width

cex

Global character expansion factor for plotting

scale

Whether or not to give x- and y-axes the same scale

color

How to differentiate segments. If color==TRUE (default), segments will be drawn in solid lines with differing colors. If color==FALSE, segments will be drawn in the same color with differing line types.

empty

Creates an empty plot if set to TRUE. Suppresses differentiation by line type if color==FALSE, and suppresses segment number labels. Defaults to FALSE.

linecol

Line color to use if empty is TRUE or color is FALSE. Defaults to black.

xlab

Label for X-axis (defaults to "")

ylab

Label for Y-axis (defaults to "")

...

Additional plotting arguments (see par)

Note

This function is intended to provide basic visual checks for the user, not for any real mapping.

Author(s)

Matt Tyers

Examples

1
2

Example output



riverdist documentation built on Sept. 10, 2021, 9:06 a.m.