We have been working on a new charting engine for
xts::plot.xts for the past couple years. It started with Michael Weylandt’s work during the 2012 Google Summer of Code, and Ross Bennett took up the torch during the 2014 GSoC.
This new engine improves the functionality, modularity, and flexibility of
plot.xts by building off the framework Jeff Ryan began with
quantmod::chart_Series. The modular framework allows users to plot an xts object and incrementally build custom charts by adding panels of new data (including transformations of the original xts object).
The main objective was to provide functionality similar to
addTA for xts objects. The current code includes support for:
- Basic time series plots with sensible defaults
- Plotting xts objects by column “automagically” as separate panels
- Small multiples with multiple pages
- “Layout-safe” so multiple specifications/panels can be charted in a single device
- Easily add data to an existing plot or add panels similar to
- Event lines
The xts team would greatly appreciate any comments, feedback, and bug reports before the upcoming CRAN release at the end of April.
Note that the new
plot.xts includes breaking changes to the original (and rather limited)
plot.xts. However, we believe the new functionality more than compensates for the potential one-time inconvenience.