Learn R Programming

rivervis (version 0.46.0)

RiverLabel: River Labels on River Charts

Description

This adds the name labels to the plotted rivers.

Usage

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.

See Also

RiverLayout, RiverDraw, RiverMap. par.

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)

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

RiverLabel(riverlayout, corner = "lb")

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

Run the code above in your browser using DataLab