broman (version 0.68-2)

revrainbow: Create vector of colors from blue to red

Description

Calls rainbow then rev

Usage

revrainbow(n = 256, ...)

Arguments

n

Number of colors.

...

Passed to rainbow.

Value

Vector of colors, from blue to red.

Details

There's not much to this. It's just rev(rainbow(start=0, end=2/3, ...)).

See Also

rev, rainbow

Examples

Run this code
# NOT RUN {
x <- matrix(rnorm(100), ncol=10)
image(x, col=revrainbow())

# }

Run the code above in your browser using DataLab