Add a bar.

b_bar(p, serie, name = NULL, stack = FALSE, axis = "y", width = list(),
  zerobased = TRUE)

Arguments

p

an object of class billboard.

serie

column of values to plot.

name

name of serie.

stack

set to stack.

axis

axis to plot on, see examples.

width

width of bars.

zerobased

set if min or max value will be 0 on bar chart.

Examples

mtcars %>% b_board() %>% b_bar(mpg) mtcars %>% b_board() %>% b_bar(mpg, stack = TRUE) %>% b_bar(drat, stack = TRUE) mtcars %>% b_board() %>% b_bar(mpg) %>% b_bar(drat, axis = "y2")