blue2red | R Documentation |
blue2red
makes a color map that runs from blue -> cyan ->
yellow -> red.
blue2green
makes a color map that runs from blue -> magenta ->
yellow -> green.
green2red
makes a color map that runs from green -> cyan ->
magenta -> red
blue2red(n)
blue2green(n)
green2red(n)
n |
number of colors |
These are double-ramp maps with a sharp transition from cooler colors to warmer colors at the midpoint. With proper scaling, this will highlight the mean, median, etc.
A colormap
Tim Keitt <tkeitt@gmail.com>
Keitt, T. H. (2008) Coherent ecological dynamics induced by large scale disturbance. Nature 454:331-334
rgb
image(matrix(1:400, 20), col = blue2red(400))
image(matrix(1:400, 20), col = blue2green(400))
image(matrix(1:400, 20), col = green2red(400))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.