sl.view.colbar: View Colourbar

sl.view.colbarR Documentation

View Colourbar

Description

View a spheRlab colour bar (by simple plotting).

Usage

sl.view.colbar(colbar, labels = TRUE, labels.cex = 1, labels.col = "black")

Arguments

colbar

a spheRlab colourbar as returned by sl.colbar, that is, a list of length N with characters describing RGB values (hexadecimal) of the colours comprising the colourbar.

labels

a logical value indicating whether or not the colour indices are added as labels.

labels.cex

a scalar that can be used to increase of decrease the label size.

labels.col

the label colour.

Details

This function allows to view a colourbar, independent of how it's applied to a numerical field with corresponding numerical breaks. A simple 'matrix' of the colours is plotted using plot and rect. In contrast to other spheRlab plotting functions, this one is not meant to produce a high-quality figure, but for a quick view.

Author(s)

Helge Goessling

See Also

sl.colbar, sl.plot.colbar

Examples

## Not run: 
cb = sl.colbar(cols=list(c(1,0,0),c(1,1,1),c(0,0,1)),N=11)
sl.view.colbar(cb)

## End(Not run)

FESOM/spheRlab documentation built on April 6, 2024, 6:52 p.m.