oceColorsTwo: Create two-color palette

View source: R/oce.R

oceColorsTwoR Documentation

Create two-color palette

Description

Create colors ranging between two specified limits, with white in the middle.

Usage

oceColorsTwo(n, low = 2/3, high = 0, smax = 1, alpha = 1)

Arguments

n

number of colors to generate.

low, high

numerical values (in range 0 to 1) specifying the hue for the low and high ends of the color scale.

smax

numerical value (in range 0 to 1) for the color saturation.

alpha

numerical value (in ragne 0 to 1) for the alpha (transparency) of the colors.

See Also

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

Examples

library(oce)
imagep(volcano-mean(range(volcano)), col=oceColorsTwo(128),
       zlim="symmetric", zlab="oceColorsTwo")

oce documentation built on July 9, 2023, 5:18 p.m.