Learn R Programming

echarts4r (version 0.2.0)

e_toolbox_feature: Toolbox

Description

Add toolbox interface.

Usage

e_toolbox_feature(e, feature, ...)

e_toolbox(e, ...)

Arguments

e

An echarts4r object as returned by e_charts.

feature

Feature to add, defaults to all.

...

Any other option to pass, check See Also section.

Details

Valid feature:

  • saveAsImage

  • brush

  • restore

  • dataView

  • dataZoom

  • magicType

See Also

Additional arguments

Examples

Run this code
# NOT RUN {
USArrests %>% 
  e_charts(UrbanPop) %>% 
  e_line(Assault) %>% 
  e_area(Murder, y_index = 1, x_index = 1) %>% 
  e_datazoom(x_index = 0) 
  
mtcars %>% 
  dplyr::mutate(model = row.names(.)) %>%  
  e_charts(model) %>% 
  e_line(qsec) %>% 
  e_toolbox() %>% 
  e_toolbox_feature(
    feature = "magicType", 
    type = list("line", "bar")
  ) 

# }

Run the code above in your browser using DataLab