sl.view.colbar | R Documentation |
View a spheRlab colour bar (by simple plotting).
sl.view.colbar(colbar, labels = TRUE, labels.cex = 1, labels.col = "black")
colbar |
a spheRlab colourbar as returned by |
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. |
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.
Helge Goessling
sl.colbar
, sl.plot.colbar
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.