From rpeng at jhsph.edu  Fri Sep  2 17:42:38 2005
From: rpeng at jhsph.edu (Roger D. Peng)
Date: Fri, 02 Sep 2005 11:42:38 -0400
Subject: [Rd] lattice and for loop
In-Reply-To: <20050902153038.GA13664@stat.umn.edu>
References: <20050902153038.GA13664@stat.umn.edu>
Message-ID: <431872EE.1060607@jhsph.edu>

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/



[Rd] lattice and for loop
Roger D. Peng