a number between 0 and 1 giving the saturation of the colors that will represent the
ends of the scale. Lower numbers mean less saturation (lighter colors).
blueEnd
vector of length 3 giving the RGB relative values (between 0 and 1) for the blue or negative end color.
redEnd
vector of length 3 giving the RGB relative values (between 0 and 1) for the red or positive end color.
middle
vector of length 3 giving the RGB relative values (between 0 and 1) for the middle of the scale.
Author
Peter Langfelder
Details
The function returns a color vector that starts with blue, gradually turns into white and then to
red. The power gamma can be used to control the behaviour of the quarter- and three quarter-values
(between blue and white, and white and red, respectively). Higher powers will make the mid-colors more
white, while lower powers will make the colors more saturated, respectively.
See Also
numbers2colors for a function that produces a color representation for continuous numbers.