[R-SIG-Finance] abline for quantmod charts

Hae Kyung Im haky.im at gmail.com
Thu Apr 30 22:56:52 CEST 2009


I was trying to add vertical lines to a quantmod plot using

abline( v = somdatetime ) like in the following example

> getSymbols("YHOO")
[1] "YHOO"
> chartSeries(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?


More information about the R-SIG-Finance mailing list