SST colours

Share:

Description

SST colours

Usage

1
sstPal(x, palette = FALSE, alpha = 1)

Arguments

x

a vector of data values or a single number

palette

logical, if TRUE return a list with matching colours and values

alpha

value in 0,1 to specify opacity

Value

colours, palette, or function, see Details

References

Derived from http://oceancolor.gsfc.nasa.gov/DOCS/palette_sst.txt.

Examples

1
2
3
4
library(raster)
data(oisst)
sstcols <- sstPal(palette = TRUE)
plot(oisst, col = sstcols$col, zlim = range(sstcols$breaks))