Learn R Programming

oce (version 1.1-1)

oceColorsCDOM: Create colors suitable for CDOM fields

Description

Create a set of colors for displaying CDOM values, based on the scheme devised by Kristen M. Thyng in her cmcolor Python package, which is available at https://github.com/kthyng/cmocean. The color specifications were downloaded for use here on 2015-09-29. To avoid changes in oce scripts, more recent changes to cmcolor have not been tracked; oceColorsClosure has an example of how to incorporate such changes.

Usage

oceColorsCDOM(n)

Arguments

n

number of colors to create.

Value

A vector of color specificications.

See Also

Other things related to colors: colormap, oceColors9B, oceColorsChlorophyll, oceColorsClosure, oceColorsDensity, oceColorsFreesurface, oceColorsGebco, oceColorsJet, oceColorsOxygen, oceColorsPAR, oceColorsPalette, oceColorsPhase, oceColorsSalinity, oceColorsTemperature, oceColorsTurbidity, oceColorsTwo, oceColorsVelocity, oceColorsViridis, oceColorsVorticity, ocecolors

Examples

Run this code
# NOT RUN {
library(oce)
imagep(volcano, col=oceColorsCDOM(128),
       zlab="oceColorsCDOM")

# }

Run the code above in your browser using DataLab