Learn R Programming

rivervis (version 0.38.2)

RiverPoint: Points on River Charts

Description

This function plots scatter points or broken lines on the river chart.

Usage

RiverPoint(site, river, distance, value, riverlayout,
           type = "l", pt.col = "grey40", pt.bg = "black", pt.pch = 20, pt.cex = 1, 
           lbl.cex = 0.7, lbl.adj = c(0.5,2), lbl.ofs = 0.5, lbl.col = "black",
           lbl.srt = 0, lbl.pos = NULL, lbl.shw = FALSE, ln.lwd = 1)

Arguments

site
a vector of site IDs.
river
a vector of river names.
distance
a vector of distances from sites to the river mouth.
value
a vector of values.
riverlayout
the output list of RiverLayout or RiverMap.
type
type of plot. See plot for details. The default value is "l", which means "lines".
ln.lwd
line width.
pt.col
point or point border colour.
pt.bg
point point background(fill) colour when pt.pch=21:25.
pt.pch
point style.
pt.cex
point size.
lbl.cex
label size.
lbl.adj
label adjustment. One or two values in [0,1] for x and y (optional) adjustment.
lbl.ofs
label position offset.
lbl.col
label colour.
lbl.srt
label angle.
lbl.pos
label position. 1 for below, 2 for left, 3 for above, and 4 for right. See par for details.
lbl.shw
show labels (TRUE) or not (FALSE).

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(B.elevation$Site, B.elevation$River, B.elevation$Distance, 
           B.elevation$Elevation, riverlayout)

RiverPoint(B.elevation$Site, B.elevation$River, B.elevation$Distance, 
           B.elevation$Elevation, riverlayout, lbl.shw=TRUE)

RiverPoint(B.elevation$Site, B.elevation$River, 
           B.elevation$Distance, NA, riverlayout, lbl.shw=TRUE)

Run the code above in your browser using DataLab