get_shade | R Documentation |
Get an RGB string representing the color and opacity given
get_shade(color, opacity = 0)
color |
A vector of R color strings or numbers |
opacity |
An integer between 0 an 99 representing percentage opaque |
A vector of RGB strings of the specified colors and opacity Format of returned string is #RRGGBBAA where RR = red, a 2-hexadecimal-digit string GG = green, a 2-hexadecimal-digit string BB = blue, a 2-hexadecimal-digit string AA = alpha or opacity
library(gfutilities)
get_shade("blue", 1)
get_shade("salmon")
get_shade(c(1, 2, 3), 50)
get_shade(c("red", "blue", "yellow"), 20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.