set_colors: Change default colors of the package.

Description Usage Arguments Value Examples

View source: R/env_functions.R

Description

Customize your plots and change default color palette.

Usage

1
set_colors(colors_df)

Arguments

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.

Value

No return value, called for side effects.

Examples

 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)

tidycharts documentation built on Jan. 18, 2022, 5:07 p.m.