eChart: Create an ECharts widget

Description Usage Arguments Examples

Description

Create an HTML widget for ECharts that can be rendered in the R console, R Markdown documents, or Shiny apps. You can add more components to this widget and customize options later. eChart() is an alias of echart().

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
echart(data, ...)

## S3 method for class 'list'
echart(data, width = NULL, height = NULL, ...)

## S3 method for class 'data.frame'
echart(data = NULL, x = NULL, y = NULL, series = NULL, 
    type = "auto", width = NULL, height = NULL, ...)

## Default S3 method:
echart(data = NULL, x = NULL, y = NULL, series = NULL, type = "auto", 
    width = NULL, height = NULL, ...)

eChart(data, ...)

Arguments

data

a data object (usually a data frame or a list)

x

the x variable

y

the y variable

Examples

1
2
3
library(recharts)
echart(iris, ~Sepal.Length, ~Sepal.Width)
echart(iris, ~Sepal.Length, ~Sepal.Width, series = ~Species)

yihui/recharts documentation built on Aug. 29, 2020, 3:44 p.m.