View source: R/plot_colourbar.R
Function to plot a colourbar with specified colours and leves
or with output from plot.NetCDF
.
1 2 3 |
levs |
vector of shading boundaries or list containing |
cols |
vector of colours |
units |
character string describing units (optional) |
side |
which side should axis labels be drawn on? |
xlab,ylab |
axes labels label (alternative to describe the units) |
labels |
alternative labels to be used instead of levs |
nn |
spacing of labels to be drawn, |
center |
logical, should labels refer to colour mid-points? |
cex.axis |
character expansion for axis labelling |
sea.col |
colour for missing values, masked values |
sea.name |
description of missing/masked values |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.