colorpale {plgraphics} | R Documentation |
determine more pale colors for given colors
Description
Finds colors that are ‘equivalent’ to the colors given as the first argument, but more pale or less pale
Usage
colorpale(col = NA, pale = NULL, rgb = FALSE, ...)
Arguments
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 |
Details
The function increases rgb coordinates of colors ‘proportionally’: crgb <- t(col2rgb(col)/255); rgb(1 - pale * (1 - crgb))
Value
character vector: names of colors to be used as color argument for graphical functions.
Author(s)
Werner A. Stahel, ETH Zurich
See Also
Examples
( t.col <- colorpale(c("red","blue")) )
plot(0:6, type="h", col=c("black","red","blue",t.col, colorpale(t.col)), lwd=5)