Description Usage Arguments Colors Examples
Customise colors.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 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_color
Manual list your colors of choice.
b_color_brewer
Use palettes from the brewer.pal package.
b_color_viridis
Use palettes from the viridis package.
b_color_wes
Use palettes from the wes_palette package
b_color_ghibli
Use palettes from the ghibli_palette package
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | 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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.