rainbow.lab | R Documentation |
Rainbow based on circle of lab color space
rainbow.lab( n, start = 1.5, end = -3, alpha = 1, lightScale = 0, lightMultiple = 0.7 )
n |
number of colors desired |
start |
start angle (in proportion of circle) in lab space |
end |
end angle (in proportion of circle) in lab space |
alpha |
transparency (0 for transparent, 1 for opaque) |
lightScale |
exponent to scale lightness by |
lightMultiple |
multiple to scale lightness by |
vector of color strings
cols<-rainbow.lab(100) plot(1:100,cex=3,col=cols,lwd=5) cols<-rainbow.lab(100,lightScale=1) plot(1:100,col=cols,lwd=5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.