RiverDirection: River Direction Arrow

Description Usage Arguments Author(s) See Also Examples

View source: R/RiverDirection.R

Description

This plots river flow direction arrow on river charts.

Usage

1
2
3
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.

Author(s)

Feng Mao

See Also

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
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)

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