Description Usage Arguments Value Examples
View source: R/env_functions.R
Customize your plots and change default color palette.
1 | set_colors(colors_df)
|
colors_df |
data frame with 6 rows and 2 columns. Columns must nave names : "text_colors", "bar_colors". In cells there should be rgb values of chosen colors in format: "rgb(x,y,z)". Rows represent subsequent colors on stacked plots. |
No return value, called for side effects.
1 2 3 4 5 6 7 8 9 10 11 12 | mi2lab_colors <- cbind(
bar_colors = c(
"rgb(68, 19, 71)",
"rgb(243, 46, 255)",
"rgb(106, 0, 112)",
"rgb(217, 43, 227)" ,
"rgb(114, 49, 117)",
"rgb(249, 110, 255)"
),
text_colors = c("white", "white", "white", "white", "white", "white"))
set_colors(mi2lab_colors)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.