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
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.
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
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
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") {
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
6 matches
Mail list logo