block by timelyportfolio e2349d1e850313fcb1c6

R finance charts with the svgPanZoom htmlwidget

Full Screen

Pan and Zoom Financial Charts in R

The svgPanZoom htmlwidget featured in WEEK 02 | PAN & ZOOM R PLOTS claims that it easily adds pan and zoom interactivity to nearly all R graphs. Here we try out svgPanZoom on a couple of finance charts.

Live Examples

  1. Efficient Frontier from fPortfolio
  2. Snail Trail from PerformanceAnalytics

Code to reproduce code.r

Source Data from Yahoo! Finance using quantmod

code.R