sl.view.colbar: View Colourbar

Description Usage Arguments Details Author(s) See Also Examples

View source: R/sl.view.colbar.R

Description

View a spheRlab colour bar (by simple plotting).

Usage

1
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 (in pdf format), but for a quick view.

Author(s)

Helge Goessling

See Also

sl.colbar, sl.plot.colbar

Examples

1
2
3
4
5
## 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)

helgegoessling/spheRlab documentation built on Sept. 29, 2017, 6:36 a.m.