RiverLabel: River Labels on River Charts

Description Usage Arguments Author(s) See Also Examples

View source: R/RiverLabel.R

Description

This adds the name labels to the plotted rivers.

Usage

1
2
RiverLabel(riverlayout, cex = 0.7, adj = c(0, -1), srt = 90,
  col = "black", pos = NULL, offset = 0.5, corner = "lb")

Arguments

riverlayout

the output list of RiverLayout or RiverMap.

cex

text size.

adj

text adjustment. One or two values in [0,1] for x and y (optional) adjustment.

srt

text angle.

col

text colour.

pos

text position. 1 for below, 2 for left, 3 for above, and 4 for right. See par for details. It overrides adj if it is not NULL.

offset

text position offset.

corner

river label position, which can be at any of the four river chart corners. "lt" for left-top, "lb" for left-bottom, "rt" for right-top, "rb" for right-bottom.

Author(s)

Feng Mao

See Also

RiverLayout, RiverDraw, RiverMap. par.

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)

RiverLabel(riverlayout, corner = "lt", srt = 0, adj = c(0, -0.7))

RiverLabel(riverlayout, corner = "lb")

RiverLabel(riverlayout, corner = "rt", srt = -90)

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