knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

library(echarts4r)

e_common(
    font_family = "Raleway"
)

The toolbox allows you to add neat little interactive functions to your plots.

Features

Save plot

mtcars |> 
  e_charts(qsec) |> 
  e_line(mpg, smooth = TRUE) -> echart

echart |> e_toolbox_feature(feature = "saveAsImage") # hit the download button!

data Zoom

echart |> e_toolbox_feature(feature = "dataZoom")

data view

echart |> e_toolbox_feature(feature = "dataView")

See the official documentation for the full list.



JohnCoene/echarts4 documentation built on Feb. 23, 2024, 9:18 a.m.