svgPanZoom: R 'Htmlwidget' to Add Pan and Zoom to Almost any R Graphic

This 'htmlwidget' provides pan and zoom interactivity to R graphics, including 'base', 'lattice', and 'ggplot2'. The interactivity is provided through the 'svg-pan-zoom.js' library. Various options to the widget can tailor the pan and zoom experience to nearly any user desire.

Getting started

Package details

AuthorAnders Riutta et. al. [aut, cph] (svg-pan-zoom.js BSD-licensed library in htmlwidgets/lib,, Jorik Tangelder [aut, cph] (hammer.js MIT-licensed touch library in htmlwidgets/lib,, Kent Russell [aut, cre] (R interface to svg-pan-zoom.js)
MaintainerKent Russell <>
LicenseMIT + file LICENSE
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:

Try the svgPanZoom package in your browser

Any scripts or data that you put into this service are public.

svgPanZoom documentation built on March 26, 2020, 7:53 p.m.