From ripley at stats.ox.ac.uk  Mon Nov 22 10:20:03 2004
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Mon Nov 22 10:20:19 2004
Subject: [Rd] user error described in the FAQ (was [BUG?] xyplot in loop
	does not work)
In-Reply-To: <84fecab0411220057701e777e@mail.gmail.com>
References: <84fecab0411220057701e777e@mail.gmail.com>
Message-ID: <Pine.LNX.4.61.0411220914300.24431@gannet.stats>

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


[Rd] user error described in the FAQ (was [BUG?] xyplot in loop does not work)
Prof Brian Ripley