broman (version 0.70-4)

revrainbow: Create vector of colors from blue to red

Description

Calls grDevices::rainbow() then base::rev()

Usage

revrainbow(n = 256, ...)

Arguments

n

Number of colors.

...

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

base::rev(), grDevices::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