That's because you didn't read R FAQ 7.24. Andy
> From: Vaclav Petricek > > Hello everyone > > Could someone please explain me why are xyplot() calls inside > a for loop > unsuccessful? > > Calling plot() is OK but xyplot() just opens the graphics > window and that > is all. No error, no warning :-( The same xyplot() outside > for loop works > fine. > > --------------------------------------------------------- > library(lattice) > > # OK: > plot(1,2,type='p',main='standalone plot') > # OK: > for (name in 1) plot(1,2,type='p',main='plot in for') > > # OK: > xyplot(1~2,type='p',main='standalone xyplot') > # This does not plot anything: > for (name in 1) xyplot(1~2,type='p',main='xyplot in for') > --------------------------------------------------------- > > Thank you very much for your help > > Vaclav > > ______________________________________________ > [EMAIL PROTECTED] mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html > > ------------------------------------------------------------------------------ Notice: This e-mail message, together with any attachments,...{{dropped}} ______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
