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:
Hello, I was wondering if there is an easy way of overlaying two bar charts using quantmod? Here is what I am trying to do: chartSeries(ts1, type = "bars", show.grid = TRUE, up.col = "green", dn.col = "green") chartSeries(ts2, type = "bars", show.grid = TRUE, up.col = "red", dn.col = "red") But have ts2 show in the same plot frame or if that does not work have it show in a frame below the first one. Regards, Sebastian
_______________________________________________ R-SIG-Finance at stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-sig-finance -- Subscriber-posting only. -- If you want to post, subscribe first.
Jeffrey Ryan jeffrey.ryan at insightalgo.com ia: insight algorithmics www.insightalgo.com