color: Customise colors

Description Usage Arguments Colors Examples

Description

Customise colors.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15

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

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

JohnCoene/billboard documentation built on May 14, 2019, 2:39 p.m.