Skip to content
Prev 3968 / 15274 Next

quantmod: overlaying time series bar charts

Sebastian,

At present you can't do that on one graphical region.

If you would like two plotted above and below each other, this would
be a solution:

layout(matrix(1:2, nrow=2))
chartSeries(ts1, layout=NULL, TA=NULL)
chartSeries(ts2, layout=NULL, TA=NULL)
layout(1)

The first layout call will have to be adjusted if you make use of
additional TA windows. ?layout is the place to start for that.

Just curious, as this has been requested before, what is your use
case/rationale for the overlay?

Unless the series share the same scale, the charts are bound to be
very confusing.  Even with the same scale I am not too sure you will
be deriving any information from the overlay.

Jeff

On Tue, Apr 28, 2009 at 7:49 AM, Sebastian Hauer
<sebastian.hauer at gmail.com> wrote: