View source: R/PrettyBarPlot2.R
lighten | R Documentation |
lighten
gives a
lighter shade of a color.
lighten(colors, factor = 1.4, maxColorValue = 255)
colors |
a vector of color names. |
factor |
(Default: 1.4) the lightening factor. |
maxColorValue |
(Default: 255) the maximum possible for a color component. |
Credit to Roland, see: https://stackoverflow.com/questions/30219738/is-there-a-way-to-programmatically-darken-the-color-given-rgb-values
A lightened color.
lighten(c('#FF0000FC','#E6E6FAFC'), 1.3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.