Site icon R-bloggers

eoda publishes interactiveGGPLOT – interactive graphics with ggplot2

[This article was first published on eoda, R und Datenanalyse » eoda english R news, 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.

One of Rs great strengths compared to other statistic solutions or programming languages ​​is the amount of possibilities for creating well-designed publication-quality plots. Almost all plot types can be created with any amount of fine tuning. R works on small data sets as well as on big data.
In addition to Rs base-graphics various add-on packages like Lattice and most notably ggplot2 allow for even fancier graphics. ggplot2 by Hadley Wickham is based on “The Grammar of Graphics”, the standard book on data visualization.

With all this graphic functionality available, Rs latest add-on knitr adds all functionality needed to create stunning automated publication ready reports, not only as LaTeX but Office and HTML Documents too.

Using the package GoogleVis, R can also be used as a data source for googles Chart Tool API, which can be used in Webpages, but since they use flash, webpages only. Also, they are a complete seperate solution not building upon Rs graphics, but replacing it.

To bring Rs graphic capabilities to the Web 2.0 the proper way, eoda develops interactiveGGPLOT. The idea behind it is to use the entire outstanding feature set of ggplot2, spice it up with Javascript to link it with the powerful Html-5 capabilities of modern Webbrowsers, such as Firefox, Chrome and Internet Explorer 9.

As a quick example, the following plot can be created with these few lines of R code:

< !--[IF lt IE 9]>

Leider ist der Ihre Version des Internet Explorers zu alt um interactive SVG Grafiken darzustellen. Sie benötigen mindestens die Version 9, oder einen anderen SVG kompatiblen Browser wie z.B. Firefox, Chrome oder Opera.

< ![ENDIF]--> < !--[IF gte IE 9]> < ![ENDIF]--> < !--[IF !IE]> –> < !-- < ![ENDIF]-->
require("interactiveGGPLOT")
climateData

An example of a business application with interactiveGGPLOT is our Twitter Monitor.

In it’s current version, interactiveGGPLOT uses the ggplot2 functions geom_point, geom_line, and geom_bar. More will follow.

interactiveGGPLOT v0.1 source package: interactiveGGPLOT_0.1.tar.gz

To leave a comment for the author, please follow the link and comment on their blog: eoda, R und Datenanalyse » eoda english R news.

R-bloggers.com 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.