cosname / recharts

An interface to ECharts
https://recharts.cosx.org
BSD 3-Clause "New" or "Revised" License
335 stars 149 forks source link

could not find function "mergeList" #31

Closed lichangzai closed 8 years ago

lichangzai commented 8 years ago

source("~/echartR.R") library(recharts) names(iris) = gsub(".", "", names(iris)) echartR(data=iris,x=~SepalLength,y=~PetalWidth,series = ~Species,

  • type = 'scatter') Error in echartR(data = iris, x = ~SepalLength, y = ~PetalWidth, series = ~Species, : could not find function "mergeList"
yummyZhou commented 8 years ago

It seems you want to get scatter plot from recharts package.

you need to re-install the newly updated package from Github: require(devtools) install_github('recharts', 'taiyun')

And then execute the following code: library(recharts) ePoints( dat=iris, xvar=~Sepal.Length, yvar=~Sepal.Width, series = ~Species)

At present, you need to clarify the chart type in your plot code as the following examples: eBar for bar chart; ePoints for scatter chart; eMap for map; eLine for line chart; eRadar for radar chart; ePie for pie chart; eArea for erea chart;

and some other chart type will be added in later

yihui commented 8 years ago

以后可以统一用略紧凑的语法 devtools::install_github('taiyun/recharts')