View source: R/colorfunctions.R
col.shade | R Documentation |
Shades an RBG color
col.shade(col, shade = 0.5)
col |
a vector of RGB color(s) |
shade |
numeric value between 0 and 1. Zero means no change and 1 results in black |
This function shades an RGB color and returns the shaded RGB color (with alpha channel added)
Claus Ekstrom claus@rprimer.dk
Ekstrom, CT (2011) The R Primer.
newcol <- col.shade("blue")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.