c3_mixedGeom: Mixed Geometry Plots

Description Usage Arguments Value Examples

View source: R/plots.R

Description

Use multiple geometry types in a single plot

Usage

1
c3_mixedGeom(c3, types, type = "line", stacked = NULL)

Arguments

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

Value

c3

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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'))

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