Re: [R] lattice: plotting in a loop

2009-11-25 Thread Ryan Archer
o-lattice_002ftrellis-graphics-not-work_003f > > baptiste > > 2009/11/25 Ryan Archer : > > Hi, > > > > I'm having trouble seeing graphics output from lattice xyplot() when > called > > from inside a for loop: > > > > x <- 1:50 > > for

[R] lattice: plotting in a loop

2009-11-25 Thread Ryan Archer
Hi, I'm having trouble seeing graphics output from lattice xyplot() when called from inside a for loop: x <- 1:50 for ( i in 1:5 ) { y <- rnorm(x) xyplot(y~x) # no graphics when inside for-loop # plot(x,y)# works fine # Sys.sleep(0.5) # doesn't seem to help } The x