Learn R Programming

rivervis (version 0.46.0)

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, range = NA, 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.
range
point value range. A vector of two values indicating lower limit and upper limit.
type
type of plot. See plot for details. The default value is "l", which means "lines".
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).
ln.lwd
line width.

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.sitenh4n$Site, B.sitenh4n$River, B.sitenh4n$Distance,
           B.sitenh4n$NH4N_Spring, riverlayout, type = "o",
           pt.col = "#5381FFFF", pt.pch = 21, pt.bg = "lightblue")

RiverPoint(B.sitenh4n$Site, B.sitenh4n$River, B.sitenh4n$Distance,
           B.sitenh4n$NH4N_Autumn, riverlayout, type = "o",
           pt.col = "#FF3931FF", pt.pch = 21, pt.bg = "pink",
           lbl.shw = TRUE)

Run the code above in your browser using DataLab