Description Usage Arguments Author(s) See Also Examples
View source: R/RiverAxisLabel.R
This adds left or right axis labels to the river chart.
1 2 3 |
label |
the axis label to be shown on the river chart. |
riverlayout |
the output list of |
cex |
text size. |
adj |
text adjustment. One or two values in the range [0,1] for x and y (optional) adjustment. |
srt |
text angle. |
col |
text colour. |
pos |
text position. |
offset |
text position offset. |
side |
left ( |
mainonly |
the axis title is only shown for the main stream only
( |
Feng Mao
RiverLayout
, RiverDraw
,
RiverMap
. par
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # see examples below
data(Ballinderry)
riverlayout <- RiverLayout(B.river$River,B.river$Length,
B.river$Parent,B.river$Position,
B.river$Distance, direction = -1)
RiverDraw(riverlayout)
RiverBar(B.siteaspt$Site, B.siteaspt$River, B.siteaspt$Distance,
B.siteaspt[4:5], riverlayout, range = c(0,8),
bar.col = c("#5381FFFF", "#FF3931FF"), lbl.adj = c(0.5,1.3))
RiverTM(c(0,2,4,6,8,10), B.siteaspt[4:5], riverlayout,
pos=-1, side = "L", range = c(0,8), label = c(0,2,4,6,8))
RiverAxisLabel("ASPT score", riverlayout, adj = c(0.5, -3))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.