[R] wrong lines in auto.key xyplot

arysar arysar at gmail.com
Mon Feb 21 16:44:25 CET 2011


Hi all,

I'm having a problem with the auto.key function in xyplot.

I changed the symbols an lines styles using these commands

trellis.par.set(superpose.symbol=list(pch=c(0,1,2,3,4,5,6,8,15,16)))
trellis.par.set(superpose.symbol=list(col=c(rep("black",11))))
trellis.par.set(superpose.symbol=list(cex=c(rep(0.6,11))))
trellis.par.set(superpose.line=list(col=c(rep("black",11))))
trellis.par.set(superpose.line=list(lty=c(1,1,1,2,2,2,2,3,3,3,3)))

xyplot(Dq~q , data =zq, groups=Weeks, type="o",
auto.key=list(x=.7,y=.9,title="Weeks",cex.title=1, points=TRUE,
lines=TRUE))

the graphic is showed with the parameters I changed and if I enter a
show.settings() command the lines  display as I changed, but in the
legend the lines have any other style. What I am doing wrong?

Any help would be greatly appreciated.

Leonardo A. Saravia
Instituto de Ciencias
Universidad Nacional de General Sarmiento



More information about the R-help mailing list