Re: [R] quantmod's addTA plotting functions

2011-05-05 Thread Jeff Ryan
Sorry, I forgot to give you a quick example of 'wrapping in plot' plot(addTA(...)) The objects returned by most of the charting functions in quantmod results from the desire for the functions to be syntactically identical whether called from inside of chartSeries (e.g. TA="addMACD()" ) as they ar

Re: [R] quantmod's addTA plotting functions

2011-05-05 Thread P Ehlers
Russ, All you have to do is replace addTA(GSPC.EMA.3, on = 1, col = "#ff") with plot(addTA(GSPC.EMA.3, on = 1, col = "#ff")) etc. I can sympathize with the documentation frustration, but I think that much of the documentation in R and in many R packages is actually very good.

Re: [R] quantmod's addTA plotting functions

2011-05-05 Thread Jeff Ryan
There is a struggle in documentation that revolves around being too brief to be useful and too verbose which then is often ignored. In general, R "proper" is far less verbose than quantmod docs - so if you have trouble with quantmod... from ?addTA Value: ‘addTA’ will invisibly return an S4

Re: [R] quantmod's addTA plotting functions

2011-05-05 Thread Russ Abbott
Thanks. You're right. I didn't see that. I read the ?addTA help page, which (annoyingly) didn't mention that feature, but I didn't read the ?TA page. (That page was mentioned as a see also, but not as a must see.) I don't know what it means to wrap these calls in a plot call. I tried to put the a

Re: [R] quantmod's addTA plotting functions

2011-05-05 Thread P Ehlers
On 2011-05-05 0:47, Russ Abbott wrote: Hi, I'm having trouble with quantmod's addTA plotting functions. They seem to work fine when run from the command line. But when run inside a function, only the last one run is visible. Here's an example. test.addTA<- function(from = "2010-06-01") {

[R] quantmod's addTA plotting functions

2011-05-04 Thread Russ Abbott
Hi, I'm having trouble with quantmod's addTA plotting functions. They seem to work fine when run from the command line. But when run inside a function, only the last one run is visible. Here's an example. test.addTA <- function(from = "2010-06-01") { getSymbols("^GSPC", from = from) GS