Description Usage Arguments Value See Also Examples
These functions adjust a color's hue, saturation, and brightness (value).
adjust_hsv
adjusts hue, saturation, and brightness either
by replacing the current value (mode="absolute"
) or adding to it
(mode="relative"
, the default).
saturate
and desaturate
increase and decrease
saturation by the given amount, respectively
greyscale
(or grayscale
) fully desaturates the
color
brighten
and darken
increase and decrease
brightness by the given amount, respectively
1 2 3 4 5 6 7 8 9 10 11 |
col |
Vector containing any of the three kinds of R color specifications:
|
h |
The adjustment in hue [-1,1] (default: no adjustment) |
s |
The adjustment in saturation [-1,1] (default: no adjustment) |
v |
The adjustment in brightness [-1,1] (default: no adjustment) |
mode |
Whether the adjustments set the value directly
(" |
amount |
The value of the adjustment |
The adjusted color(s) as hexadecimal strings
hue
, saturation
,
brightness
to these component values
1 2 | # Decrease saturation of orange by 0.1
adjust_hsv(col = "orange", s = -0.1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.