purple2green {colorRamps}R Documentation

Returns a gradient color map

Description

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

Usage

purple2green(n)
blue2yellow(n)
cyan2magenta(n)

Arguments

n number of colors

Details

These are single gradient maps that smoothly transition from cooler to warmer colors. See blue2red for double gradient maps.

Value

A color map

Author(s)

Tim Keitt <tkeitt@gmail.com>

See Also

rgb

Examples

image(matrix(1:400, 20), col = purple2green(400))
image(matrix(1:400, 20), col = blue2yellow(400))
image(matrix(1:400, 20), col = cyan2magenta(400))

[Package colorRamps version 1.0 Index]