
Last chance! 50% off unlimited learning
Sale ends in
RiverMap(river, length, parent, position, distance, row = NA, direction = 1, margin = 0.5, bd.col = "black", ln.col = "grey40", ln.lty = 3, ln.lwd = 1, bg.col = "grey80", pt.shw = TRUE, pt.col = "black", pt.pch = 20, pt.bg = "black", pt.cex = 1, pt.lwd = 1, mar.t = 0.05, mar.b = 0.05, mar.l = 0.2, mar.r = 0.1)
TRUE
) or not (FALSE
). Anchor
points represent the locations of the river mouths.pch=21:25
.RiverMap
returns a list containing data for river map
drawing, and plots the river map accordingly. The output list can be used
for further plotting. The output list includes, river
, length
,
parent
, position
and distance
. It also includes
calculated x-coordinates of river mouths (rmouth
) and sources
(rsource
), defined in the same units as the inputs length
and
distance
. The last included vector is the row number for each river
(row
), in which the main stream has a fixed row number of 0.length
and distance
.W.MAX
.direction = 1
), or from left to right (direction = -1
).RiverLayout
, RiverDraw
,
par
.
data(Ballinderry)
riverlayout <- RiverLayout(B.river$River,B.river$Length,
B.river$Parent,B.river$Position,
B.river$Distance, direction = -1)
str(riverlayout)
RiverMap(B.river$River,B.river$Length,B.river$Parent,
B.river$Position, B.river$Distance)[[1]]
RiverMap(B.river$River,B.river$Length,B.river$Parent,
B.river$Position, B.river$Distance,
row = c(5,-1,6,3,-4,2,-6,7), direction = -1)
Run the code above in your browser using DataLab