This Rmarkdown is a companion to the blog post Using svgPanZoom on a Pre-generated SVG. It demonstrates the output of svgPanZoom on a pre-generated SVG.

library("svgPanZoom")
library("RCurl")
## Loading required package: bitops
file.name <- "https://raw.githubusercontent.com/tinyheero/tinyheero.github.io/master/assets/copy_number_landscape.svg"
in.svg <- getURL(file.name)
svgPanZoom(in.svg, controlIconsEnabled = TRUE)

sessionInfo()
## R version 3.1.2 (2014-10-31)
## Platform: x86_64-apple-darwin14.1.0 (64-bit)
## 
## locale:
## [1] en_CA.UTF-8/en_CA.UTF-8/en_CA.UTF-8/C/en_CA.UTF-8/en_CA.UTF-8
## 
## attached base packages:
## [1] stats     graphics  grDevices utils     datasets  methods   base     
## 
## other attached packages:
## [1] RCurl_1.95-4.5   bitops_1.0-6     svgPanZoom_0.2.0
## 
## loaded via a namespace (and not attached):
##  [1] digest_0.6.8    evaluate_0.7    htmltools_0.2.6 htmlwidgets_0.5
##  [5] jsonlite_0.9.16 knitr_1.10.5    rmarkdown_0.7   rstudioapi_0.2 
##  [9] stringr_0.6.2   tools_3.1.2     yaml_2.1.13