[R-SIG-Finance] Using abline with chartSeries
Worik Stanton
worik.stanton at gmail.com
Tue Apr 10 00:49:37 CEST 2012
On 09/04/12 17:58, Joshua Ulrich wrote:
> Click the "Support Lists" tab on the right section of the page. The
> first three results answer your original question.
That is, although helpful, a little obscure!
Helpfully, to answer my own question:
> > getSymbols("IBM")
> [1] "IBM"
> > IBM.m <- to.monthly(IBM)
> > chartSeries(IBM.m, theme="white")
> > abline(h=160)
addLines(h=160, on=1)
does the trick.
But how do I get a dotted line?
> addLines(h=100, lty=2)
Error in addLines(h = 100, lty = 2) : unused argument(s) (lty = 2)
The "col" argument works to set a colour.
Is there any documentation available? Banging around google and mailing
list archives is a very time consuming and frustrating process.
?addLines is not helpful.
cheers
Worik
--
Foo!
More information about the R-SIG-Finance
mailing list