We R users are very spoiled by the ggplot2 and lattice engines that rival or beat the plotting libraries of any language. Wouldn’t it be nice to have all the power of these engines to create interactive graphs? Well, Paul Murrell, the author of grid (platform of ggplot2 and lattice), wrote gridSVG to do just that. Over the last couple of years, Simon Potter under the guidance of Murrell has refined gridSVG for his honours project. It is now a full-featured robust package capable of sending even your most complicated ggplot2 and lattice masterpieces to SVG. gridSVG can do amazing things on his own, but I, of course, wanted to combine gridSVG with d3. Click here or on the screenshot below to see a walkthrough applying a little gridSVG glue to ggplot2 and d3.
Thanks to Paul Murrell, Simon Potter, Hadley Wickham, Mike Bostock, Duncan Temple Lang, Deborah Nolan, Juliana Williams, Andreas Neumann, Ramnath Vaidyanathan and all the folks along the way that have made this possible.
You should check out some related work: animint allows defining interactive animations entirely in R code using a list of ggplots with clickSelects and showSelected aesthetics.ReplyDelete