开发者

How to make interactive charts together with R language

开发者 https://www.devze.com 2023-03-20 05:22 出处:网络
I\'m helping my friend make a website. He previously used R language to generate statistical charts. Now he want to generate some dynamic chart so that when users move mouse over certain part of the c

I'm helping my friend make a website. He previously used R language to generate statistical charts. Now he want to generate some dynamic chart so that when users move mouse over certain part of the chart there will be some description/complementary information pops up for them to read. What kind of technology/tools/packages I can use for this purpose?

PS: I've explored some possible ways, yet none of them fits my needs. I've tried rggobi + ggobi. They can't coz they are not for web applications. iPlot can't do it coz it generates histogram o开发者_C百科nly. I've thought about asking R produces some intermediate date which I can pass to some JavaScript packages like HighCharts. Yet, apparently R is much powerful than JS. R can generates some advanced type of charts which JS just can't do.


You should use R to generate the data and then export it in a format that a javascript framework for graphs can understand. This way you could benefit from the advanced statistical analysis provided by R and the presentation layer of javascript.

Lots of solutions exist for this problem, but i've heard lots of good things about Raphael and its chart plugin, which you may want to investigate


The playwith package offers facilities to manipulate rgl graphics. A couple of links:

http://code.google.com/p/playwith/w/list

http://www.r-bloggers.com/playing-with-the-%E2%80%98playwith%E2%80%99-package/


Look at the sendplot package or the RSVGTipsDevice package.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号