color.RdCustomise colors.
b_color(p, colors, ...) b_color_brewer(p, pal, n = 8, ...) b_color_viridis(p, pal = "D", ...) b_color_plasma(p, ...) b_color_inferno(p, ...) b_color_magma(p, ...) b_color_wes(p, pal, ...) b_color_ghibli(p, pal, ...)
| p | an object of class |
|---|---|
| colors | colors to use. |
| ... | any other parameter. |
| pal |
|
| n | number of colors. |
b_colorManual list your colors of choice.
b_color_brewerUse palettes from the brewer.pal package.
b_color_viridisUse palettes from the viridis package.
b_color_wesUse palettes from the wes_palette package
b_color_ghibliUse palettes from the ghibli_palette package
mtcars %>% b_board() %>% b_area(qsec) %>% b_spline(wt) %>% b_bar(disp, axis = "y2") %>% b_step_area(cyl) -> p p %>% b_color(c("red", "blue", "yellow", "orange")) p %>% b_color_brewer("Dark2") p %>% b_color_viridis() p %>% b_color_wes("Zissou1") p %>% b_color_ghibli("PonyoMedium")