Customise 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, ...)

Arguments

p

an object of class billboard.

colors

colors to use.

...

any other parameter.

pal

RColorBrewer color palette.

n

number of colors.

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

Examples

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")