plotcolbar: Function to add a single coloured bars

Description Usage Arguments Details

View source: R/plotcolbar.R

Description

Plot bar of projected changes at specified location with light shading of inner region (generally used to indicate natural variability).

Usage

1
2
plotcolbar(x, y, yshade = NULL, col = hcl(c(240, 0), l = 60, c = 50),
  col2 = hcl(c(240, 0), l = 30, c = 80), lwd = 10)

Arguments

x

location on the horizontal axis to plot

y

vector of percentiles (e.g. 10, 90, 50th)

yshade

value for inner shading (see details)

col

colour for negative and positive values

col2

colour for horizontal line (median)

lwd

line width of bar

Details

Inner shading can be indicated both using a single value (per bar) or two values per bar for bottom and top extend if asymmetrical.


jonasbhend/NRMgraphics documentation built on May 19, 2019, 7:26 p.m.