c3_bar: Bar Plot

Description Usage Arguments Value Examples

View source: R/plots.R

Description

Add bars to a C3 plot

Usage

1
2
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

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

c3 documentation built on March 16, 2020, 5:07 p.m.

Related to c3_bar in c3...