The gridSVG Package

The gridSVG package can be used to generate a grid-based R plot in an SVG format, with the ability to add special effects to the plot. The special effects include animation, interactivity, and advanced graphical features, such as masks and filters. This article provides a basic introduction to important functions in the gridSVG package and discusses the advantages and disadvantages of gridSVG compared to similar R packages.

Paul Murrell , Simon Potter

CRAN packages used

gridSVG, lattice, ggplot2, animation, RSVGTipsDevice, googleVis, shiny

CRAN Task Views implied by cited packages

Graphics, WebTechnologies, Multivariate, Pharmacokinetics, Phylogenetics, ReproducibleResearch, SpatioTemporal


Text and figures are licensed under Creative Commons Attribution CC BY 4.0. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".


For attribution, please cite this work as

Murrell & Potter, "The R Journal: The gridSVG Package", The R Journal, 2014

BibTeX citation

  author = {Murrell, Paul and Potter, Simon},
  title = {The R Journal: The gridSVG Package},
  journal = {The R Journal},
  year = {2014},
  note = {},
  doi = {10.32614/RJ-2014-013},
  volume = {6},
  issue = {1},
  issn = {2073-4859},
  pages = {133-143}