Thanks Brian. I am surprised that each call to add_* rerenders. What
command actually does the rerendering? Isn't it possible to rewrite the
functions so that commands accumulate and rendering is done only once? R is
already an inefficient language (everything is done via copies as opposed
to references), and rerendering multiple times slows everything down
further and likely unnecessarily.

Thanks,

   Gordon

On Mon, Apr 23, 2012 at 9:23 AM, Brian G. Peterson <brian@braverock.com>wrote:

> On Mon, 2012-04-23 at 09:02 -0400, Gordon Erlebacher wrote:
> > However, if I add the stochastic chart using "add_TA" (uncomment two
> > lines in the above code), my text annotations disappear. Of course, I
> > could probably create a special function to add them, similar to what
> > is done with add_SMA, but is there another way?
> >
> You need to either let the chob object know about your chart layer as
> the add_* functions do, or you need to put your text or other overlays
> on the chart *last*.
>
> Each call to add_* function will rerender the chart, using the
> information stored in the chob.  So, if you don't want to work wit hthe
> chob, your overlay needs to be added later.
>
> Regards,
>
>  - Brian
> >
> --
> Brian G. Peterson
> http://braverock.com/brian/
> Ph: 773-459-4973
> IM: bgpbraverock
>
>

	[[alternative HTML version deleted]]

