Sunday, December 14, 2014

DR Alumni Race Results: First attempt with Shiny

I've always touted how nice Tableau can be for producing interactive graphics quickly. Although Tableau requires having a license to work with "large" datasets or connecting outside of local text files. As far as I'm concerned, Tableau is still great for quick prototyping visualizations and has a relatively cheap license. What do you do when your data is online and Tableau isn't an option?

That's when I picked up on RStudio's Shiny. Shiny is a web application framework for being able to host your R scripts online. Well, about two nights of going through their awesome tutorial and I had myself a basic working visualization using the ggplot2. I was able to make a pretty nice static visualization that could redraw based on an input string (someone's name). In order to recreate the interactivity of Tableau, I needed a different package and chose to use rCharts. rCharts allows for a nice interface to the D3 library which allows for interactive charts. Below is a simple example extending Shiny to redraw an interactive scatter plot using the Polychart.JS library. What do you think?

No comments:

Post a Comment