graphx (version 1.0)

cubehelix: Cube Helix colour palette

Description

Generate the Cube Helix colour palette, designed to appropriately display of intensity images, as the brightness increases monotonically when displayed in greyscale.

Usage

cubehelix(n, r = 1.5, hue = 1, gamma = 1, rev = FALSE)

Arguments

n

integer number of colours in the scale

r

real number specifying the number of rotations of the helix over the scale

hue

non-negative number specifying the colour intensity from grey (0) to normal (1) and over-saturated (>1)

gamma

positive number specifying the relative importance of low vs high values

rev

logical flag indicating whether the ordering of the colors should be reversed

Value

Returns an n-vector of RGB colour strings.

Details

This scheme was published by Green, D. A., 2011, "A colour scheme for the display of astronomical intensity images." Bulletin of the Astronomical Society of India, 39, 289.