[R-SIG-Finance] addLines in Quantmod
Joshua Ulrich
josh.m.ulrich at gmail.com
Wed Jul 7 02:53:36 CEST 2010
I'm assuming the lines aren't being added to the plot. If that's the
case, you need to wrap each call to addLines() with plot(). For
example plot(addLines(h=130,on=1)).
That said, I don't know if that's the issue you're referring to since
you didn't actually ask a question.
--
Joshua Ulrich
FOSS Trading: www.fosstrading.com
On Tue, Jul 6, 2010 at 7:45 PM, Andres Petrocelli <cordura21 at gmail.com> wrote:
> Hi, guys. I am running the following code:
>
> plotFunction <-function() {
> library("quantmod")
> getSymbols("SPY")
> #pdf("quantModChart.pdf")
> barChart(SPY,theme="white")
> addLines(h=130,on=1)
> addLines(h=100,on=1)
> #dev.off()
> }
>
> plotFunction()
>
>
> pS: sorry if it's a double post, first time user of a mailing list. Won't do
> it again (I hope)
>
> [[alternative HTML version deleted]]
>
> _______________________________________________
> 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.
> -- Also note that this is not the r-help list where general R questions should go.
>
More information about the R-SIG-Finance
mailing list