Hello I am using this command to draw the figure attached to this mail. xyplot(g[,4]~g[,3],type="b",group=interaction(g[,1],g[,2]), auto.key =list( title="Evolution de la stabilit?" , points = FALSE, columns=2, lines = TRUE,space="right") ,data=g,xlab=expression(beta),ylab="stabilit?") I want to change name of the legend that were attributed automaticalle (for example from C.D to C/D)? Can you help me to solve this? Regards -- PhD candidate in Computer Science Address 3 avenue lamine, cit? ezzahra, Sousse 4000 Tunisia tel: +216 97 246 706 (+33640302046 jusqu'au 15/6) fax: +216 71 391 166 -------------- next part -------------- A non-text attachment was scrubbed... Name: figurepourmail.png Type: image/png Size: 54577 bytes Desc: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20130506/f8bf6820/attachment.png>
Hello, Adel, maybe the argument sep of interaction() helps you. Try interaction( g[,1], g[,2], sep = "/") Regards -- Gerrit> I am using this command to draw the figure attached to this mail. > > xyplot(g[,4]~g[,3],type="b",group=interaction(g[,1],g[,2]), auto.key > =list( title="Evolution de la stabilit?" , points = FALSE, columns=2, > lines = TRUE,space="right") ,data=g,xlab=expression(beta),ylab="stabilit?") > > I want to change name of the legend that were attributed automaticalle (for > example from C.D to C/D)? > > Can you help me to solve this? > > > > Regards > > -- > PhD candidate in Computer Science > Address > 3 avenue lamine, cit? ezzahra, Sousse 4000 > Tunisia > tel: +216 97 246 706 (+33640302046 jusqu'au 15/6) > fax: +216 71 391 166