cubehelix | R Documentation |
Generate the Cube Helix colour palette, designed to appropriately display of intensity images, as the brightness increases monotonically when displayed in greyscale.
cubehelix(n, r = 1.5, hue = 1, gamma = 1, rev = FALSE)
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 |
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.
Returns an n-vector of RGB colour strings.
Danail Obreschkow
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.