Re: [Rd] lattice and for loop

2005-09-02 Thread Roger D. Peng
See http://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-do-lattice_002ftrellis-graphics-not-work_003f -roger Charles Geyer wrote: > - Forwarded message from Sandy Weisberg <[EMAIL PROTECTED]> - > > OK, here is my R bug: > > library(lattice) > x <- rnorm(20) > y <- rnorm(20) > z <-rep(c(1,

[Rd] lattice and for loop

2005-09-02 Thread Charles Geyer
- Forwarded message from Sandy Weisberg <[EMAIL PROTECTED]> - OK, here is my R bug: library(lattice) x <- rnorm(20) y <- rnorm(20) z <-rep(c(1,2),10) xyplot(y~x|z) # the above works fine. Now try this: for (j in 1:1) {xyplot(y~x|z)} # no graph is produced. -- Sanford Weisberg Univers