Learn R Programming

recharts (version 0.0.3)

echart: Create an ECharts widget

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

echart(data, ...)

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

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

# S3 method for default 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

Run this code
# NOT RUN {
library(recharts)
echart(iris, ~Sepal.Length, ~Sepal.Width)
echart(iris, ~Sepal.Length, ~Sepal.Width, series = ~Species)
# }

Run the code above in your browser using DataLab