Description Usage Arguments Value See Also Examples
These functions adjust a color's red, green, and blue components
adjust_rgb
adjusts red, green, and blue, either
by replacing the current value (mode="absolute"
) or adding to it
(mode="relative"
, the default).
1 |
col |
Vector containing any of the three kinds of R color specifications:
|
r |
The adjustment in hue [-1,1] (default: |
g |
The adjustment in saturation [-1,1] (default: |
b |
The adjustment in brightness [-1,1] (default: |
mode |
Whether the adjustments set the value directly
(" |
The adjusted color(s) as hexadecimal strings
red
, green
, blue
, and
alpha
to get RGB component values
1 2 | # Add red to purple
adjust_rgb("purple", r = 0.2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.