rainbow2 | R Documentation |
Reversed rainbow
with different defaults, resulting in a color vector from blue (good) to red (bad)
rainbow2(n = 10, s = 1, v = 1, start = 0, end = 0.7, alpha = 1)
n |
number of colors. DEFAULT: 10 |
s , v |
saturation and value as in |
start |
start color. DEFAULT: 0 |
end |
end color. DEFAULT: 0.7 |
alpha |
transparency. DEFAULT: 1) |
A character vector of color names.
Berry Boessenkool, berry-b@gmx.de, Sept 2014
seqPal
for a better palette, rainbow
plot(1:10, pch=16, cex=2, col=rainbow2(10))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.