| adjcolors | R Documentation |
Convert a color with specified alpha level
adjcolors(colors, alpha)
colors |
Color vectors. |
alpha |
Alpha level in |
A character vector of hexadecimal color codes with the specified alpha level.
colors <- c("red", "blue", "green")
adjcolors(colors, 0.5)
ggplot2::alpha(colors, 0.5)
show_palettes(
list(
"raw" = colors,
"adjcolors" = adjcolors(colors, 0.5),
"ggplot2::alpha" = ggplot2::alpha(colors, 0.5)
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.