col.bar: Display a color bar object on an existing plot.

View source: R/colorscale.R

col.barR Documentation

Display a color bar object on an existing plot.

Description

Add a color bar or color points into an exisiting plot or map. For a description of palette choices, see colscal.

Usage

col.bar(
  xleft,
  ybottom,
  xright,
  ytop,
  breaks,
  horiz = TRUE,
  pch = 15,
  v = 1,
  h = 1,
  col = col,
  cex = 5,
  cex.lab = 0.6,
  cex.axis = 0.9,
  type = "r",
  verbose = FALSE,
  vl = 0.5,
  border = "black",
  ...
)

Arguments

breaks

A numeric vector of breakpoints for the colours

horiz

a boolean; if TRUE add horizontal color bar, else add vertical color bar

pch

see par

v

Vertical space between color bar points

h

horizontal space between color bar points

col

see par

cex

A numerical value giving the amount by which plotting text and symbols should be magnified relative to the default (see par)

cex.lab

Magnification factor for x and y labels (see par)

cex.axis

Magnification factor for axis annotations (see par)

type

r : rectangular shape , p : for points

verbose

a boolean; if TRUE print information about progress

vl

a numerical specifying the relative placement of the vertical lines

border

a boolean; if TRUE show color bar borders

...

Additional graphical parameters to be passed on

See Also

colbar.ini colscal


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