[R-SIG-Finance] abline for quantmod charts
jeff.a.ryan at gmail.com
Thu Apr 30 23:16:48 CEST 2009
The best way to do this at the moment is with addTA:
You'll notice that it draws a thick line (region). This is usually
more useful than just a line on quantmod charts, as the spacing is
between observations is padded.
I will at some point be adding access for primitive graphics function
to the whole charting process, but for now this should do what you
On Thu, Apr 30, 2009 at 3:56 PM, Hae Kyung Im <haky.im at gmail.com> wrote:
> I was trying to add vertical lines to a quantmod plot using
> abline( v = somdatetime ) like in the following example
>  "YHOO"
>> abline( v=as.POSIXct("2008-04-01","%Y-%m-%d") )
> But nothing shows up on the chart.
> Any ideas on how to do this?
> 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