Add a step-area.

b_step_area(p, serie, name = NULL, stack = FALSE, axis = "y",
  zerobased = TRUE, above = FALSE)

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.

zerobased

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

above

set to fill area above.

Examples

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