Re: [Rd] user error described in the FAQ (was [BUG?] xyplot in loop does not work)

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Mon 22 Nov 2004 - 20:20:03 EST

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

______________________________________________
R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Mon Nov 22 20:26:56 2004

This archive was generated by hypermail 2.1.8 : Fri 18 Mar 2005 - 09:01:41 EST