RiverDraw: River Chart Plotting

Description Usage Arguments Author(s) See Also Examples

View source: R/RiverDraw.R

Description

This plots the river chart according to the output list provided by RiverLayout.

Usage

1
2
3
4
RiverDraw(riverlayout, bd.col = "black", ln.col = "grey40", ln.lty = 3,
  ln.lwd = 1, bg.col = "grey80", pt.shw = TRUE, pt.col = "black",
  pt.pch = 20, pt.bg = "black", pt.cex = 1, pt.lwd = 1, mar.t = 0.05,
  mar.b = 0.05, mar.l = 0.2, mar.r = 0.1)

Arguments

riverlayout

the output list of RiverLayout.

bd.col

border colour.

ln.col

lead line colour.

ln.lty

lead line style.

ln.lwd

lead line width.

bg.col

background colour.

pt.shw

show anchor point (TRUE) or not (FALSE). Anchor points represent the locations of the river mouths.

pt.col

anchor point colour.

pt.pch

anchor point style.

pt.bg

anchor point background(fill) colour when pch=21:25.

pt.cex

anchor point size.

pt.lwd

anchor point border width.

mar.t

top margin size.

mar.b

bottom margin size.

mar.l

left margin size.

mar.r

right margin size.

Author(s)

Feng Mao

See Also

RiverLayout, RiverMap, par.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
data(Ballinderry)

# River flows right
riverlayout <- RiverLayout(B.river$River,B.river$Length,
                           B.river$Parent,B.river$Position,
                           B.river$Distance, direction = -1)
RiverDraw(riverlayout)

# River flows left
riverlayout.left <- RiverLayout(B.river$River,B.river$Length,
                                B.river$Parent,B.river$Position,
                                B.river$Distance)

RiverDraw(riverlayout.left)

Example output



rivervis documentation built on May 1, 2019, 7:28 p.m.