[Rd] [BUG?] xyplot in loop does not work

2004-11-22 Thread Valery Khamenya
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  
major1  
minor9.1
year 2004   
month06 
day  21 
language R  

-
platform i386-pc-mingw32
arch i386   
os   mingw32
system   i386, mingw32  
status  
major2  
minor0.0
year 2004   
month10 
day  04 
language R   
-
(Version 2.0.1 were tested too)

best regards
--
Valery.

__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] [BUG?] xyplot in loop does not work

2004-11-22 Thread Uwe Ligges
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  
major1  
minor9.1
year 2004   
month06 
day  21 
language R  

-
platform i386-pc-mingw32
arch i386   
os   mingw32
system   i386, mingw32  
status  
major2  
minor0.0
year 2004   
month10 
day  04 
language R   
-
(Version 2.0.1 were tested too)

best regards
--
Valery.
__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel