[R] lattice color problem with symbols: bug?

Bert Gunter gunter.berton at gene.com
Fri Jan 11 20:16:05 CET 2008


 




-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On
Behalf Of Stefan Grosse
Sent: Friday, January 11, 2008 10:04 AM
To: R help (E-mail)
Subject: [R] lattice color problem with symbols: bug?

Dear useR's,

I have a problem with the lattice plotting of some symbols:

library(lattice)

test<-data.frame(x=c(2,3,1,5),u=c(rep(1,2),rep(2,2)),g=c(rep(c(1,2),2)))

xyplot(x~u,groups=g,
 data=test,
 par.settings=list(
    superpose.symbol=list(pch=c(22, 23),cex=c(1.7,1.6),col="black")
    ),
 key=list(
    text=list(c("t1","t2")),
    space = "bottom",pch=c(23, 22),
    points=F,
    cex=1.0,
    col="black"
    ),
)

As you see the symbols which have been plotted into the plotting area appear

to have some filling color while in the legend there is no filling color 
although the specification of the symbols is the same.

.........

Not for me. Both sets of symbols are identical and unfilled.

> sessionInfo()
R version 2.6.1 Patched (2007-12-03 r43574) 
i386-pc-mingw32 


Bert Gunter
Genentech Nonclinical Statistics




More information about the R-help mailing list