powered by
Reversed rainbow with different defaults, resulting in a color vector from blue (good) to red (bad)
rainbow
rainbow2(n = 10, s = 1, v = 1, start = 0, end = 0.7, alpha = 1)
A character vector of color names.
number of colors. DEFAULT: 10
saturation and value as in rainbow. DEFAULT: 1
start color. DEFAULT: 0
end color. DEFAULT: 0.7
transparency. DEFAULT: 1)
Berry Boessenkool, berry-b@gmx.de, Sept 2014
seqPal for a better palette, rainbow
seqPal
plot(1:10, pch=16, cex=2, col=rainbow2(10))
Run the code above in your browser using DataLab