[Rd] lattice and for loop
Charles Geyer
charlie at stat.umn.edu
Fri Sep 2 17:30:38 CEST 2005
----- 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.
--
Sanford Weisberg
University of Minnesota, School of Statistics
312 Ford Hall, Minneapolis, MN 55455
612-625-8355, FAX 612-624-8868
St. Paul office: 146 Classroom-Office Building, 612-625-8777
sandy at stat.umn.edu
----- End forwarded message -----
Sandy originally found this in
R 2.1.1 (for Windows).
I have tried this in
R 2.1.1 Patched (2005-08-04).
R 2.1.1 Patched (2005-09-02).
R 2.2.0 Under development (unstable) (2005-09-01).
all on
Linux 2.6.11.4-21.7-smp i686 athlon i386 GNU/Linux
Suse 9.3
gcc (GCC) 3.3.5 20050117 (prerelease) (SUSE Linux)
So our question is: is this a bug or a feature?
--
Charles Geyer
Professor, School of Statistics
University of Minnesota
charlie at stat.umn.edu
More information about the R-devel
mailing list