[R-SIG-Finance] trying to plot coincident time series in quantmod...
jeff.a.ryan at gmail.com
Thu May 14 16:24:08 CEST 2009
addPoints isn't very useful. I intend on adding wrapper functions to
the underlying base graphics functions in R, that will work with
quantmod. Until then 'addTA' will do almost everything you would want
for simple additions.
Both of these work:
** Don't convert dat_ from xts. The timestamps are important.
** the "on" argument is where to draw. In this case "1" is the main
window you want.
On Thu, May 14, 2009 at 8:35 AM, Eugene Tyurin <etyurin at skipstonellc.com> wrote:
> I am trying to plot more than one time series on one chart using quantmod's
> functions. However, my ability to parse the source code is lacking...
> For the life of me I can't figure out a way to use addPoints(). Simple
> points() function breaks down due to na.omit() in chartSeries().
> What is the "proper way" to do something like this? I attached a simple
> example below:
> # This works fine:
> # This does not:
> -- Eugene Tyurin.
> [[alternative HTML version deleted]]
> R-SIG-Finance at stat.math.ethz.ch mailing list
> -- Subscriber-posting only.
> -- If you want to post, subscribe first.
jeffrey.ryan at insightalgo.com
ia: insight algorithmics
More information about the R-SIG-Finance