Learn R Programming

colorRamps (version 2.3)

blue2yellow: Returns a gradient color map

Description

blue2yellow makes a blue to yellow gradient color map

Usage

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

Arguments

n

number of colors

Value

A color map

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

rgb

Examples

Run this code
# NOT RUN {
image(matrix(1:400, 20), col = blue2yellow(400))
# }

Run the code above in your browser using DataLab