colorpale | R Documentation |
Finds colors that are ‘equivalent’ to the colors given as the first argument, but more pale or less pale
colorpale(col = NA, pale = NULL, rgb = FALSE, ...)
col |
a color or a vector of colors for which the pale version should be found |
pale |
number between -1 and 1 determining how much paler the result should
be. If |
rgb |
should result be expressed in 'rgb' form? If |
... |
further arguments passed on to |
The function increases rgb coordinates of colors ‘proportionally’: crgb <- t(col2rgb(col)/255); rgb(1 - pale * (1 - crgb))
character vector: names of colors to be used as color argument for graphical functions.
Werner A. Stahel, ETH Zurich
rgb
( t.col <- colorpale(c("red","blue")) )
plot(0:6, type="h", col=c("black","red","blue",t.col, colorpale(t.col)), lwd=5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.