purple2green {colorRamps} | R Documentation |
puple2green
makes a purple to green gradient color map
blue2yellow
makes a blue to yellow gradient color map
cyan2magenta
makes a cyan to magenta gradient color map
purple2green(n) blue2yellow(n) cyan2magenta(n)
n |
number of colors |
These are single gradient maps that smoothly transition from cooler
to
warmer colors. See blue2red
for double gradient maps.
A color map
Tim Keitt <tkeitt@gmail.com>
image(matrix(1:400, 20), col = purple2green(400)) image(matrix(1:400, 20), col = blue2yellow(400)) image(matrix(1:400, 20), col = cyan2magenta(400))