dankelley/oce — Issue #203: proposed new colorscheme (palette)
Author: richardsc
Created: 2012-03-07 14:03:25+00:00
State: open

Basically, just the `oceColorsJet` scheme, but with green removed from the centre and replaced with white. Works well for +/- data, where 0 is defined by white and small variations close to zero are highlighted by the turquoise/yellow. I think this is very much like the regular scheme used by the Oregon State ocean mixing group for ADCP data.

Not sure what a good name would be. The function would be:

oceColorsSomething <- function(n)
{
if (missing(n) || n <= 0)
colorRampPalette(c("#00007F", "blue", "#007FFF", "cyan",
"white", "yellow", "#FF7F00", "red", "#7F0000"))
else {
colorRampPalette(c("#00007F", "blue", "#007FFF", "cyan",
"white", "yellow", "#FF7F00", "red", "#7F0000"))(n)
}
}