[R] xyplot legend : simple question

Gerrit Eichner Gerrit.Eichner at math.uni-giessen.de
Mon May 6 13:58:31 CEST 2013


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


More information about the R-help mailing list