etoolbox_save: Add toolbox save as image button

Description Usage Arguments Examples

View source: R/toolbox.R

Description

Add save as image button.

Usage

1
2
etoolbox_save(p, show = TRUE, title = "Save as image", type = "png",
  name = "echarts", lang = "Save")

Arguments

p

an echart object.

show

whether to show the button.

title

title of button.

type

image type

name

of file.

lang

text.

Examples

1
2
3
4
5
6
mtcars %>%
  echart(disp) %>%
  ebar(mpg, stack = "grp") %>% # stack
  ebar(qsec, stack = "grp") %>% # stack
  etoolbox() %>%
  etoolbox_save()

JohnCoene/echarts documentation built on May 22, 2021, 6:18 p.m.