View source: R/helper_functions.R
mm_mute_cols | R Documentation |
Modify color/transparency using hsv syntax
mm_mute_cols(cols, s = NULL, v = NULL, alpha = 0.4)
cols |
a vector of colors, eg: "#0066FF" |
s |
Either a single value or a vector of same length as cols specifying a new saturation (range 0-1). colors darken to black (0). |
v |
Either a single value or a vector of same length as cols specifying a new value (range 0-1). colors lighten to white (0) |
alpha |
Either a single value or a vector of same length as cols specifying a transparency value (range 0-1). colors translucent at 0. |
A vector of colors that have been modified in saturation, value, or alpha
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.