Skip to content

quantmod's addTA plotting functions

6 messages · Russ Abbott, Jeff Ryan, Peter Ehlers

#
On 2011-05-05 0:47, Russ Abbott wrote:
Perhaps you didn't see this NOTE on the ?TA help page:

"Calling any of the above methods from within a function
or script will generally require them to be wrapped in a
plot call as they rely on the context of the call to
initiate the actual charting addition."

Peter Ehlers
#
Russ,

All you have to do is replace

   addTA(GSPC.EMA.3,   on = 1, col = "#0000ff")

with

   plot(addTA(GSPC.EMA.3,   on = 1, col = "#0000ff"))

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. I get much more frustrated with the attempts
at 'non-technical' explanations I find in other software. It
does take a bit of getting used to always looking at the Value
section and, if in doubt, checking some of the See Alsos, but
it's worth it. I don't know quantmod very well, but even a
cursory look at the pdf file shows that the docs are quite
good.

As Jeff points out, good documentation is not easy. More good
examples are always better, but that's mighty time-consuming.

Peter Ehlers
On 2011-05-05 10:42, Russ Abbott wrote: