echarty
This package is a thin R wrapper around Javascript library
ECharts.
Two major commands use R lists to enclose the entire ECharts API.
Users can benefit from ECharts full functionality to build
interactive charts in R and Shiny with minimal overhead.
Wider connectivity and deployment potential through crosstalk support.
Installation
Latest development build 1.5.3
if (!requireNamespace('remotes')) install.packages('remotes')
remotes::install_github('helgasoft/echarty')
From CRAN:
install.packages('echarty')
Examples
library(echarty); library(dplyr)
# scatter chart (default)
cars |> ec.init()
# parallel chart
ToothGrowth |> ec.init(ctype= 'parallel')
# 3D chart with GL plugin
iris |> group_by(Species) |> ec.init(load= '3D')
# timeline of two series with grouping, formatting, autoPlay
iris |> group_by(Species) |>
ec.init(
tl.series= list(
symbolSize= ec.clmn(4, scale=4),
encode= list(x= NULL, y= c('Sepal.Width', 'Petal.Length')),
markPoint= list(data= list(list(type='max'), list(type='min')))
)
) |> ec.upd({
timeline <- c(timeline, list(autoPlay= TRUE))
})
Get started
The WEBSITE has a gallery with code and tutorials.
The package has plenty of code
examples
included. Type
?ec.examples in the RStudio Console, then copy/paste any code from Help to
see the result.
Now you can start building beautiful ECharts (and more) with R and Shiny!