Skip to content
Prev 6518 / 15075 Next

Loop: plot does not update

We don't have a reproducible example, nor the details asked for in the 
posting guide.

But a likely explanation is that the windows() device (on Windows, if 
that is the OS your 'a PC' is running) is double-buffered (by 
default), and the quartz() is not.  Thus rather than being a 'problem 
on your Mac', it may well be a feature on Windows. Using the X11() 
device may be a workaround if your X server is fast enough.

Whether the plot 'is getting re-drawn from scratch at every step of 
the loop' depends how you programmed it: R will do as you ask, but you 
haven't given us any indication what that was, and best solution is to 
avoid asking for too much plotting for each frame of an animation.
On Sun, 1 Nov 2009, Felipe Zapata wrote: