Learn R Programming

c3 (version 0.3.0)

c3_bar: Bar Plot

Description

Add bars to a C3 plot

Usage

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

Run this code
# NOT RUN {
data.frame(a=c(1,2,3,2),b=c(2,3,1,5)) %>%
  c3() %>%
  c3_bar(stacked = TRUE)

# }

Run the code above in your browser using DataLab