Hi, the following code produces no graphic output: ##################### library(lattice) library(car) data(Robey) for (i in 1:1) xyplot(tfr~contraceptors, data=Robey) ##################### However if line with "for" is out-commented then one gets graph output. The following versions were tested: ------------------------------------- platform i386-pc-mingw32 arch i386 os mingw32 system i386, mingw32 status major 1 minor 9.1 year 2004 month 06 day 21 language R ------------------------------------- platform i386-pc-mingw32 arch i386 os mingw32 system i386, mingw32 status major 2 minor 0.0 year 2004 month 10 day 04 language R ------------------------------------- (Version 2.0.1 were tested too) best regards -- Valery.
Valery Khamenya wrote:> Hi, > > the following code produces no graphic output: > > ##################### > library(lattice) > library(car) > data(Robey) > > for (i in 1:1) > xyplot(tfr~contraceptors, data=Robey) > #####################Yes, because you need to print()! See the FAQs. Uwe Ligges> However if line with "for" is out-commented then > one gets graph output. > > The following versions were tested: > > ------------------------------------- > platform i386-pc-mingw32 > arch i386 > os mingw32 > system i386, mingw32 > status > major 1 > minor 9.1 > year 2004 > month 06 > day 21 > language R > > ------------------------------------- > platform i386-pc-mingw32 > arch i386 > os mingw32 > system i386, mingw32 > status > major 2 > minor 0.0 > year 2004 > month 10 > day 04 > language R > ------------------------------------- > (Version 2.0.1 were tested too) > > best regards > -- > Valery. > > ______________________________________________ > R-devel@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel
Prof Brian Ripley
2004-Nov-22 10:20 UTC
[Rd] user error described in the FAQ (was [BUG?] xyplot in loop does not work)
Please DO as the posting guide asks and read the FAQ before posting. Do read Q7.22 (and its answer). On Mon, 22 Nov 2004, Valery Khamenya wrote:> Hi, > > the following code produces no graphic output:Correct. It should not.> ##################### > library(lattice) > library(car) > data(Robey) > > for (i in 1:1) > xyplot(tfr~contraceptors, data=Robey) > ##################### > > However if line with "for" is out-commented then > one gets graph output.Correct: it should. -- Brian D. Ripley, ripley@stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
Valery Khamenya
2004-Nov-22 10:57 UTC
[Rd] user error described in the FAQ (was [BUG?] xyplot in loop does not work)
> Please DO as the posting guide asks and read the FAQ before posting. > Do read Q7.22 (and its answer).thank you for your answer. One should NOT be so indignant. I have read the FAQ *twice* already since I have had to deal with R. First time about 4 years ago, second about 2 years ago. Do you mean, Dr.Ripley, one has to carefully read this 100-pages-FAQ-manual one time per year or even more often? I guess this FAQ-entry about fully intuitive behaviour of xyplot came last year, right? BTW, just imagine that the problem is not me. Maybe if the FAQ is too long then one could reconsider decisions, which have led to this situation. Anyway I have no fun to follow this flame. Thank you for your valuable contribution to R. With *kind* regards, Valery.