[Rd] user error described in the FAQ (was [BUG?] xyplot in loop
does not work)
Prof Brian Ripley
ripley at stats.ox.ac.uk
Mon Nov 22 10:20:03 CET 2004
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 at 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
More information about the R-devel
mailing list