powered by
Calls grDevices::rainbow() then base::rev()
grDevices::rainbow()
base::rev()
revrainbow(n = 256, ...)
Vector of colors, from blue to red.
Number of colors.
Passed to grDevices::rainbow().
There's not much to this. It's just rev(rainbow(start=0, end=2/3, ...)).
rev(rainbow(start=0, end=2/3, ...))
base::rev(), grDevices::rainbow()
x <- matrix(rnorm(100), ncol=10) image(x, col=revrainbow())
Run the code above in your browser using DataLab