Published by the Foundation for Open Access Statistics Editors-in-chief: Bettina Grün, Torsten Hothorn, Rebecca Killick, Edzer Pebesma, Achim Zeileis    ISSN 1548-7660; CODEN JSSOBK
Authors: Deborah Nolan, Duncan Temple Lang
Title: Interactive and Animated Scalable Vector Graphics and R Data Displays
Abstract: We describe an approach to creating interactive and animated graphical displays using R’s graphics engine and Scalable Vector Graphics, an XML vocabulary for describing two-dimensional graphical displays. We use the svg() graphics device inR and then post-process the resulting XML documents. The post-processing identifies the elements in the SVG that correspond to the different components of the graphical display, e.g., points, axes, labels, lines. One can then annotate these elements to add interactivity and animation effects. One can also use JavaScript to provide dynamic interactive effects to the plot, enabling rich user interactions and compelling visualizations. The resulting SVG documents can be embedded within HTML documents and can involve JavaScript code that integrates the SVG and HTML objects. The functionality is provided via the SVGAnnotation package and makes static plots generated viaR graphics functions available as stand-alone, interactive and animated plots for the Web and other venues.

Page views:: 8051. Submitted: 2010-01-06. Published: 2012-01-25.
Paper: Interactive and Animated Scalable Vector Graphics and R Data Displays     Download PDF (Downloads: 9051)
SVGAnnotation_0.93-1.tar.gz: R source package Download (Downloads: 1007; 4MB) HTML version of the paper, including SVG graphics and R replication code Download (Downloads: 1121; 4MB)

DOI: 10.18637/jss.v046.i01

This work is licensed under the licenses
Paper: Creative Commons Attribution 3.0 Unported License
Code: GNU General Public License (at least one of version 2 or version 3) or a GPL-compatible license.