colbar.ini: Display a color bar object on an existing plot.

View source: R/colorscale.R

colbar.iniR Documentation

Display a color bar object on an existing plot.

Description

Generate a color bar list and add information about the breaks of the color scale based on the numerical range of the input data.

Usage

colbar.ini(x, FUN = NULL, colbar = NULL, verbose = FALSE)

Arguments

x

an input object, e.g., a 'zoo', 'station' or 'field' object or numerical vector

FUN

a function

colbar

a list: colbar = list(col, breaks, n, type, cex, h, v, pos, show, rev) where col is a vector containing the colors corresponding to the values specified in the numerical vector breaks, n is the number of breaks (used only if breaks are not specified), show if TRUE show color bar, rev if TRUE reverse color scale, cex see par, h, v, type: see col.bar pos not in use?

verbose

a boolean; if TRUE print information about progress

See Also

col.bar colbar


metno/esd documentation built on April 29, 2024, 3:34 p.m.