Visualizing More With R — Interactive Graphs and Maps
On one discussion on the Gastos Abertos project I have been participating, someone suggested an interactive graph of the static plot title of this post. Since I am only used to ggplot2, I tried to get as close to as what was suggested: Being able to turn invisible some of the lines by clicking them.
However, little I knew I was so very close to the plot. Accidentally I stumbled on ggplotly, from plot.ly which literally only required me to pass the ggplot2 graph as a parameter. The result is as follows:
Carlosviansi's interactive graph and data of "Ritmo vs Meses" is a line chart, showing ASSISTÊNCIA E DESENVOLVIMENTO…plot.ly
A more detailed article comparing other libs for data visualization that I came across can be found at:
A minireview of R packages ggvis, rCharts, plotly and googleVis for interactive visualizationsouzor.github.io
Comparing several basic plots across all those libraries to show on R Markdown.
Other kind of visualization I have been musing on is ggmap, which appears to be a breeze to generate map plots.
The author page is here:
A simple tutorial showing its power and easiness is here:
Packages Used in this Walkthrough If you haven't played with the ggmap package then you're in for a treat! It will map…amunategui.github.io
And a more detailed explanation can be found on the following article:
There has also been some discussion on integrating them with R Markdown for data reports:
I'm working with the ggmap tutorial by Manuel Amunategui over at http://amunategui.github.io/ggmap-example/. It is a…stackoverflow.com
Last but not least, I also came across this Social Network Analysis lib for much better (interactive) plots. Some are also useful for hierarchical clustering dendograms: