plot_colourbar: Plot a colourbar

Description Usage Arguments

View source: R/plot_colourbar.R

Description

Function to plot a colourbar with specified colours and leves or with output from plot.NetCDF.

Usage

1
2
3
plot_colourbar(levs, cols = NULL, units = NULL, side = 1, ylab = "",
  labels = NULL, xlab = "", nn = 1, center = F,
  cex.axis = par("cex.axis"), sea.col = NULL, sea.name = "N/A", ...)

Arguments

levs

vector of shading boundaries or list containing levs, cols, units and sea.col

cols

vector of colours

units

character string describing units (optional)

side

which side should axis labels be drawn on? side = 2,4 will produce a vertically aligned colour bar

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, nn = 2 draws every other label only

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


jonasbhend/geoutils documentation built on May 19, 2019, 7:27 p.m.