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