The Environmental Performance Index, visualized with R

[This article was first published on Revolutions, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

The Environmental Performance Index (EPI) ranks countries on performance indicators for environmental public health and ecosystem vitality. Yale University hosts the EPI website, which was used to present the 2012 EPI Rankings to world leaders at the 2012 World Economic Forum at Davos. The Country Profiles section of the website allowed members to browse the performance characteristics of their countries, and see how they compared with other countries with similar environmental performance. (Switzerland was the 2012 overall leader.)


In the Visualizing and Interacting with Data Over the Web session at JSM 2012 this morning, Yale professor Jay Emerson revealed details of how this interactive website was created. The profile chart you see above is generated dynamically, using R grid graphics and the FastRWeb web framework for R.  The interactive “EPI Performance Score versus Trend Score” graphic was created using the gridSVG package. The country map and numeric tables were embedded using the googleVis package. And the “Countries with similar levels of performance” were generated using one of R's many clustering algorithms.

The EPI website provides a great example of how R can be used to power an attractive, informative and useful interactive website.  And because all of these charts and analyses are generated dynamically from live data (rather than pre-rendered in advance), this same website will be trivial to update when the 2013 EPI performance scores are announced.

If you'd like more details of how these charts were created, check out Jay's slides on grid graphics from the Introduction to Data Visualization and Analysis course at JSM. (There's also a very useful section on parallel programming with the foreach and doSNOW packages.) Jay also provides some useful notes on setting up fastRWeb and Rserve on his blog.

To leave a comment for the author, please follow the link and comment on their blog: Revolutions. offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)