etoolbox_magic: Add toolbox magic buttons

Description Usage Arguments Details Examples

View source: R/toolbox.R

Description

Enable changing chart type.

Usage

1

Arguments

p

an echart object.

show

wehtehr to show magic buttons.

type

chart types, see details.

title

titles of charts.

...

any other options to pass to magic feature.

Details

Pass a list to type, valid values are:

Examples

1
2
3
4
5
6
7
8
9
mtcars %>%
  echart(disp) %>%
  ebar(mpg, stack = "grp") %>% # stack
  ebar(qsec, stack = "grp") %>% # stack
  ebar(wt) %>% # not stacked
  etooltip() %>%
  elegend() %>%
  etoolbox() %>%
  etoolbox_magic(type = list("bar", "line", "stack", "tiled"))

JohnCoene/echarts documentation built on May 4, 2018, 8:04 a.m.