[Rd] lattice and for loop
Roger D. Peng
rpeng at jhsph.edu
Fri Sep 2 17:42:38 CEST 2005
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 <sandy at stat.umn.edu> -----
>
> 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.
>
--
Roger D. Peng
http://www.biostat.jhsph.edu/~rpeng/
More information about the R-devel
mailing list