Re: [R] xyplot inside a loop

2010-10-22 Thread Jorge Ivan Velez
Hi Hogbin, Thank you for the reproducible example! In order to get what you want, you need to print() your xyplot(): library(lattice) for(i in 1:10){ print(xyplot(rnorm(100) ~ rnorm(100))) # print() Sys.sleep(0.5) } HTH, Jorge On Fri, Oct 22, 2010 at 7:53 PM, Zhang, Hongbin [VA] <

[R] xyplot inside a loop

2010-10-22 Thread Zhang, Hongbin [VA]
Hi, I am using lattice package and like to do this: library(lattice) for(i in 1:10){ xyplot(rnorm(100) ~ rnorm(100)) Sys.sleep(0.5) } But the display could not show on R device for some reasons. My real xyplot is more complicate, e.g., I like to simulate an animation with 4 panels. But the