Add bars to a C3 plot

c3_bar(c3, stacked = FALSE, rotated = FALSE, bar_width = 0.6,
  zerobased = TRUE)

Arguments

c3

c3 htmlwidget object

stacked

boolean place bars on top of each other

rotated

boolean use to make x-axis vertical

bar_width

numeric pixel width of bars

zerobased

boolean

Value

c3

Examples

data.frame(a=c(1,2,3,2),b=c(2,3,1,5)) %>% c3() %>% c3_bar(stacked = TRUE)