etoolbox: Setup toolbox

Description Usage Arguments Examples

View source: R/toolbox.R

Description

Setup toolbox

Usage

1
2
3
4
5
etoolbox(p, show = TRUE, zlevel = 0, z = 6, orient = "horizontal",
  x = "right", y = "top", backgroundColor = "rgba(0,0,0,0)",
  borderColor = "#ccc", borderWidth = 0, padding = 5, itemGap = 10,
  itemSize = 16, color = NULL, disableColor = "#ddd",
  effectiveColor = "red", showTitle = TRUE, textStyle = NULL, ...)

Arguments

p

an echart object.

show

whether to show the toolbox.

z, zlevel

first and second grade cascading control, the higher z the closer to the top.

orient

toolbox orientation, horizontal or vertical.

x

horizontal alignment, left, right.

y

vertical alignment, top, center, bottom.

backgroundColor

background color.

borderColor

border color.

borderWidth

border width.

padding

padding.

itemGap

space between toolbox buttons.

itemSize

size of buttons.

color

color of buttons.

disableColor

color of disabled item.

effectiveColor

color of active button.

showTitle

set to TRUE to show text.

textStyle

style of text.

...

any other options.

Examples

1
2
3
4
5
mtcars %>%
  echart(qsec) %>%
  ebar(mpg) %>%
  etoolbox() %>%
  etoolbox_magic(type = list("line", "bar"))

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