recharts
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))))
Area Plot
plot(eArea(iris[,1:4]))
Scatter Plot
plot(ePoints(iris[,3:5]))
Pie Plot
x = sample(4)
names(x) = LETTERS[1:4]
plot(ePie(x))
Bar Plot
plot(eBar(head(iris[,1:4])))
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占全国百分数'))))