View source: R/plotFun.barplotScen.R
plotFun.barplotScen | R Documentation |
Barplot with whiskers, for instance to show mean and range of climate projections.
plotFun.barplotScen(obs, ctl, ctl.rg, p1, p1.rg, p2, p2.rg, p3, p3.rg, col, ylab = NULL, xlab = NULL, stn.name = NULL, breaks = seq(0, ceiling(p3.rg[2])), add.lines = F, lines = NULL, pch.obs = 8, cex.obs = 1.5)
obs |
observed value. |
ctl |
multi-model median/mean value in the historical period. |
ctl.rg |
2-element vector with the multi.model range (e.g. 5-95th percentiles) in the historical period. |
p1 |
multi-model median/mean value in the short-term future period. |
p1.rg |
2-element vector with the multi.model range (e.g. 5-95th percentiles) in the short-term future period. |
p2 |
multi-model median/mean value in the mid-term future period. |
p2.rg |
2-element vector with the multi.model range (e.g. 5-95th percentiles) in the mid-term future period. |
p3 |
multi-model median/mean value in the long-term future period. |
p3.rg |
2-element vector with the multi.model range (e.g. 5-95th percentiles) in the long-term future period. |
col |
4-element vector with the colours for the four bars. |
ylab |
character string for the Y-axis. |
xlab |
4-element vector to label the bars. |
stn.name |
character with the name of the station. |
breaks |
vector of values with the Y-axis ticks. |
add.lines |
should horizontal lines be added for reference? Default: FALSE. |
lines |
values in the Y-axis to plot a horizontal line. |
pch.obs |
type of marker for the observations. Default:8. |
cex.obs |
relative size for the marker representing the observations. Default: 1.5. |
A bar plot consisting on 4 bars (e.g. historical and 3 future periods) and highlight the observations with a markers. Uncertainty is shown though small segments.
Ana Casanueva (22.03.2019)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.