search for: gganim

Displaying 1 result from an estimated 1 matches for "gganim".

Did you mean: gaim
2024 Mar 22
2
Double buffering plots on Windows
Hello: I want to present a sequence of plots as an animation. As a toy example consider the code function(n){for (i in 1:n){ plot(1:100,sin(i*(1:100)),type="l") title(paste("n=",i)) segments(0,0,100,0,col=2) }} This sort-of works on a MacOS platform, but the rendering of the plots is a bit choppy. Inserting a sleep function allows the plots to evolve smoothly.