Learn R Programming

rivervis (version 0.46.0)

RiverDraw: River Chart Plotting

Description

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

Usage

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.

See Also

RiverLayout, RiverMap, par.

Examples

Run this code
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)

Run the code above in your browser using DataLab