colorpale: determine more pale colors for given colors

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Finds colors that are ‘equivalent’ to the colors given as the first argument, but more pale.

Usage

1
colorpale(col = NA, pale = 0.3, ...)

Arguments

col

a color or a vector of colors for which the pale version should be found

pale

number between 0 and 1 determining how much paler the result should be.

...

further arguments passed on to rgb

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

rgb

Examples

1
2
( t.col <- colorpale(c("red","blue")) )
plot(0:6, type="h", col=c("black","red","blue",t.col, colorpale(t.col)), lwd=5)


Search within the regr0 package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.