adjcolors | R Documentation |
This function takes a vector of colors and an alpha level and converts the colors to fixed colors with the specified alpha level.
adjcolors(colors, alpha)
colors |
Color vectors. |
alpha |
Alpha level in [0,1] |
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.