Skip to content

RFC: plot.xts

3 messages · Joshua Ulrich, Paul Teetor, Brian G. Peterson

#
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 chartSeries
and 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 quantmod::add*
- Event lines

The xts team would greatly appreciate any comments, feedback, and bug
reports before the upcoming CRAN release at the end of April.

The new version of plot.xts is in the main xts development code base,
which is available in the develop branch at:
https://github.com/joshuaulrich/xts

Bug reports and feature requests can be submitted at:
https://github.com/joshuaulrich/xts/issues

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.

Thanks,
Josh
2 days later
#
Josh:
First, many thanks to everyone for this work. I've seen some preliminary results, and they look wonderful.
Second, some questions before I dive in:
Does this subsume the xtsExtra package of plotting functions? Do we still need xtsExtra, or is that toast?
How would you recommend installing this? By devtools::install_github, for example?
Finally, I depend critically on xts for daily work. Does this beta release impact the non-graphics code? What's the appropriate level of caution here?
Thank you!?Paul Teetor, Elgin, IL USAhttp://quantdevel.com/public
      From: Joshua Ulrich <josh.m.ulrich at gmail.com>
 To: r-sig-finance <r-sig-finance at r-project.org> 
 Sent: Monday, April 20, 2015 12:36 PM
 Subject: [R-SIG-Finance] RFC: plot.xts
   
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 chartSeries
and 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 quantmod::add*
- Event lines

The xts team would greatly appreciate any comments, feedback, and bug
reports before the upcoming CRAN release at the end of April.

The new version of plot.xts is in the main xts development code base,
which is available in the develop branch at:
https://github.com/joshuaulrich/xts

Bug reports and feature requests can be submitted at:
https://github.com/joshuaulrich/xts/issues

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.

Thanks,
Josh
#
On Thu, 2015-04-23 at 15:33 +0000, Paul Teetor via R-SIG-Finance wrote:
plot.xts will be removed from xtsExtra in the near future.  Yes,
plot.xts and supporting function now in xts-proper supercede the
plot.xts in xtsExtra.
install_github is a fine approach

install_github('joshuaulrich/xts')
We use this code for production-critical tasks every day.  

The core of xts has the usual smattering of optimizations and bug fixes,
and has not changed substantially from a user perspective.  

plot.xts is substantially different from the old plot.xts, but the old
plot.xts didn't do much, which is why most users used chartSeries or
plot.zoo.
As always, YMMV, but this code has been under development and in use for
over a year, and I at least consider it stable and ready for prime time.

Regards,

Brian