/recharts

An interface to ECharts

Primary LanguageJavaScriptBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

recharts

Build Status

A R interface to ECharts for data visualization.

Installation

You can install recharts from github using the devtools package:

require(devtools)
install_github('recharts', 'taiyun')

Examples

Demo

require(recharts)
demo(recharts::recharts)
demo(recharts::recharts_shiny)
demo(recharts::recharts_shiny_pie)

Line Plot

plot(eLine(iris[,1:4]))
plot(eLine(iris[,1:4], opt=list(dataZoom=list(show=TRUE,end=35))))

Line Plot

Line Zoom Plot

Area Plot

plot(eArea(iris[,1:4]))

Area Plot

Scatter Plot

plot(ePoints(iris[,3:5]))

Scatter Plot

Pie Plot

x = sample(4)
names(x) = LETTERS[1:4]
plot(ePie(x))

Pie Plot

Bar Plot

plot(eBar(head(iris[,1:4])))

Bar Plot

Map

options(encoding="UTF-8")
Sys.setlocale("LC_CTYPE","chs")
load(url('http://yzhou.org/recharts/ChinaGDP.RData'))
plot(eMap(ChinaGDP, opt=list(title=list(text='2008~2010年大陆各省GDP占全国百分数'))))

Map