R and GoogleVis library – instant Hans Rosling! #datavis

How we gawped in wonder at Han Rosling’s TED talk. Now you can create your own! Yes you can, with R! In four lines! Don’t believe me? 

library(googleVis)data(Fruits)M = gvisMotionChart(data=Fruits, idvar="Fruit", timevar="Date", chartid="Fruit")plot(M)

Done! Click here to see it working.

It generates the html code for you, I’ve saved one on my Dropbox so you can see it working below. Press the play button, tis cool.  The GoogleVis library covers the majority of the Google Visualistion API so all the map stuff is there as well. Powerful stuff.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: