Learn R Programming

echarts4r (version 0.2.0)

e_button: Button

Description

Add a button to your visualisation.

Usage

e_button(e, id, ..., position = "top", tag = htmltools::tags$button)

Arguments

e

An echarts4r object as returned by e_charts.

id

A valid CSS id.

...

Content of the button, complient with htmltools.

position

Position of button, top or bottom.

tag

A Valid tags function.

Examples

Run this code
# NOT RUN {
iris %>% 
  group_by(Species) %>% 
  e_charts(Sepal.Length) %>% 
  e_line(Sepal.Width) %>% 
  e_line(Petal.Length) %>% 
  e_highlight(series_name = "setosa", btn = "myBtn") %>% 
  e_button("myBtn", "highlight stuff")

# }

Run the code above in your browser using DataLab