Learn R Programming

rivervis (version 0.46.0)

RiverTM: Tick Marks on River Charts

Description

This adds tick marks to the river chart.

Usage

RiverTM(tickmark, value, riverlayout, range = NA, side = "L", pos = 1, tm.l = 1, tm.col = "black", lbl.shw = TRUE, lbl.col = "black", lbl.cex = 0.7, lbl.row = TRUE, label = NA)

Arguments

tickmark
a vector of tick mark values.
value
the variables which the tick marks are for.
riverlayout
the output list of RiverLayout or RiverMap.
range
bar-chart value range. A vector of two values indicating lower limit and upper limit.
side
position of tick marks. "l" for left and "r" for right.
pos
position of tick marks. -1 for in and 1 for out.
tm.l
tick mark length.
tm.col
tick mark colour.
lbl.shw
show labels of tick marks (TRUE) or not (FALSE).
lbl.col
label colour.
lbl.cex
label size.
lbl.row
show one label per row (TRUE) or not (FALSE).
label
a vector of tick mark labels.

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)

RiverPoint(NA,B.elevation$River, B.elevation$Distance,
           B.elevation$Elevation, riverlayout)

RiverTM(c(0, 100, 200, 300, 400, 500), B.elevation[3], riverlayout,
        pos=-1, side = "R", range = c(0,500),
        label = c(0, 100, 200, 300, 400, 500))

Run the code above in your browser using DataLab