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] <> wrote:
> 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 simple code above wont work...
>
> Help please.
>
> Hongbin
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
[[alternative HTML version deleted]]