Description Usage Arguments References Examples
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 using <setEchartWidgets> functions, <aesthetic>
functions, and others.. eChart() is an alias of echart().
Create an ECharts widget
Create an ECharts widget
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16  | echart(data, ...)
## S3 method for class 'list'
echart(data, width = NULL, height = NULL, ...)
## S3 method for class 'data.frame'
echart(data, x = NULL, y = NULL, series = NULL,
  t = NULL, weight = NULL, facet = NULL, lat = NULL, lng = NULL,
  type = "auto", subtype = NULL, ...)
## Default S3 method:
echart(data, x = NULL, y = NULL, series = NULL,
  t = NULL, weight = NULL, facet = NULL, lat = NULL, lng = NULL,
  type = "auto", subtype = NULL, ...)
eChart(data, ...)
 | 
data | 
 a data object (usually a data frame or a list)  | 
... | 
 Other params to pass to echarts object  | 
width | 
 width  | 
height | 
 height  | 
x | 
 independent variable(s). Some charts calls for one, some calls for two.  | 
y | 
 dependent variable(s). Most charts calls for one, but some calls for more.  | 
series | 
 data series variables. 
  | 
t | 
 timeline variable. When   | 
weight | 
 In some charts (bar, bubble, line, ...), weight represents the size of the graph elements.  | 
facet | 
 The variable as factor mapping to facets.  | 
lat | 
 latitude variable (-180 ~ 180) for map/heatmap  | 
lng | 
 longitude variable (-90 ~ 90) for map/heatmap  | 
type | 
 chart type. Now recharts2 supports major types of  | 
subtype | 
 some chart types support subtypes. 
  | 
Online Manual: http://madlogos.github.io/recharts2
1 2 3  | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.