[R] Bug or feature in xyplot?

Philippe Grosjean phgrosje at ulb.ac.be
Mon Jul 29 08:35:59 CEST 2002


Your xyplot(...) command works fine for me. Are you sure the lattice library
is correctly loaded, using:

library(lattice)

Also, what is your plateform and your R /lattice / grid versions? Mine are:

         _
platform i386-pc-mingw32
arch     i386
os       mingw32
system   i386, mingw32
status
major    1
minor    5.1
year     2002
month    06
day      17
language R

under Windows 2000 pro, and:

Package: lattice
Version: 0.5-3
Date: 2002/05/30

Package: grid
Version: 0.6
Date: 2002/04/03

Best,

Philippe Grosjean

-----Message d'origine-----
De : owner-r-help at stat.math.ethz.ch
[mailto:owner-r-help at stat.math.ethz.ch]De la part de Hans Gardfjell
Envoyé : lundi 29 juillet 2002 04:13
À : r-help at stat.math.ethz.ch
Objet : [R] Bug or feature in xyplot?


Hi,

Can someone of you tell me why these two simple examples works as
"expected",

  plot(c(1,1,2,2)~c(1,2,1,2),col=c(1,2,3,4),pch=c(1,2,3,4))

coplot(c(1,1,2,2)~c(1,2,1,2)|c("A","A","B","B"),col=c(1,2,3,4),pch=c(1,2,3,4
))

but when I try it with xyplot in the lattice package it fails.


xyplot(c(1,1,2,2)~c(1,2,1,2)|c("A","A","B","B"),col=c(1,2,3,4),pch=c(1,2,3,4
))

Do I have to specify colors and symbol types differently with lattice
functions or
is this a bug?

Thanks,

Hans Gardfjell
Ecology and Environmental Science
Umeå University, Sweden

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.
_._



-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list