Learn R Programming

colorRamps (version 2.3.4)

blue2yellow: Returns a gradient color map

Description

blue2yellow makes a blue to yellow gradient color map

Usage

blue2yellow(n)
cyan2yellow(n)
magenta2green(n)

Value

A color map

Arguments

n

number of colors

Author

Tim Keitt <tkeitt@gmail.com>

Details

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

References

Keitt, T. H. (2008) Coherent ecological dynamics induced by large scale disturbance. Nature 454:331-334

See Also

Examples

Run this code
image(matrix(1:400, 20), col = blue2yellow(400))

Run the code above in your browser using DataLab