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.


News

svgPanZoom 0.3.3

  • fix bug in zoom controls when using with svglite

svgPanZoom 0.3.2

  • remove SVGAnnotation in examples in favor of svglite
  • Upgrade to svg-pan-zoom.js v3.2.6

svgPanZoom 0.3.1

  • Add viewBox argument to disable "smart" viewBox

svgPanZoom 0.3

  • Upgrade to svg-pan-zoom.js v3.2.3
  • Adds touch support with hammer.js
  • Internally add better sizing to fit the htmlwidget container
  • Add the ability to incorporate tasks on the JavaScript side
  • Work well with xml2

svgPanZoom 0.2

  • Initial release to CRAN

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("svgPanZoom")

0.3.3 by Kent Russell, 2 years ago


https://github.com/timelyportfolio/svgPanZoom


Report a bug at https://github.com/timelyportfolio/svgPanZoom/issues


Browse source code at https://github.com/cran/svgPanZoom


Authors: Anders Riutta et. al. [aut, cph] (svg-pan-zoom.js BSD-licensed library in htmlwidgets/lib , https://github.com/ariutta/svg-pan-zoom) , Jorik Tangelder [aut, cph] (hammer.js MIT-licensed touch library in htmlwidgets/lib , https://github.com/hammerjs/hammer) , Kent Russell [aut, cre] (R interface to svg-pan-zoom.js)


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports htmlwidgets

Suggests htmltools, svglite

Enhances gridSVG, knitr, XML, xml2


Imported by texPreview.


See at CRAN