| c3_mixedGeom | R Documentation |
Use multiple geometry types in a single plot
c3_mixedGeom(c3, types, type = "line", stacked = NULL)
c3 |
c3 htmlwidget object |
types |
list containing key value pairs of column header and plot type |
type |
character default plot type where not defined |
stacked |
character vector of column headers to stack |
c3
data <- data.frame(a = abs(rnorm(20) *10),
b = abs(rnorm(20) *10),
c = abs(rnorm(20) *10),
d = abs(rnorm(20) *10))
data %>%
c3() %>%
c3_mixedGeom(type = 'bar',
stacked = c('b','d'),
types = list(a='area',
c='spline'))