Learn R Programming

rivervis (version 0.46.0)

RiverDirection: River Direction Arrow

Description

This plots river flow direction arrow on river charts.

Usage

RiverDirection(riverlayout, loc = NA, arw.length = 0.05, arw.lty = 1, arw.lwd = 1, arw.angle = 30, arw.col = "black", label = "Flow direction", lbl.cex = 0.5, lbl.pos = 4, lbl.ofs = 0.5)

Arguments

riverlayout
the output list of RiverLayout or RiverMap.
loc
location of arrow. One or two values in the range [0, 1] for left and bottom margin sizes. If loc = NA, use mouse to locate the arrow. ESC to confirm.
arw.length
arrow length.
arw.lty
arrow line style.
arw.lwd
arrow line width.
arw.angle
arrow head angle.
arw.col
arrow colour.
label
label of the arrow.
lbl.cex
label size.
lbl.pos
label position.
lbl.ofs
label position offset.

See Also

RiverLayout, RiverDraw, RiverMap, par, locator, arrows.

Examples

Run this code
data(Ballinderry)

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

RiverDirection(riverlayout, arw.length = 0.03,
               loc = c(0.8, 0.05), lbl.cex = 0.8)

# Use mouse to allocate the flow direction sign
## RiverDirection(riverlayout, arw.length = 0.03, lbl.cex = 0.8)

Run the code above in your browser using DataLab