Hello R users,

I have some troubles to modify the "per default" legend in the
scatterplot.matrix using the car package. Here is my code:

--------------------------------------------------------------------
scatterplot.matrix(~ a + b + c,
           groups=treatment,
           by.groups=F,
           data=newfile3,
           smooth=T,
           pch=c(16,4),
           cex=1.3,
           labels=label,
           cex.labels=1.3,
           font.labels=2,
           col=c("black","dark grey","black","black"),
           legend.plot=T,
           )
legend("topright",c("fenced","unefenced"), fill=NULL,bty="o",cex=3)
--------------------------------------------------------------------

In my dataset, the variable "treatment" contains two levels that are coded "N"
and "Y" (for No and Yes) and appear in my "per default" legend that is located
in the buttomright of my 3x3 scatterplot. I would like to replace N by a list
of character: "unfenced" and Y by "fenced", as well as moving the legend in
another place in my graphic... is someone know how to do that with a
scatterplot?

Thank's

Julien

--
Julien Beguin
Etudiant-chercheur au doctorat
Laboratoire d'analyse quantitative des paysages, local 2113
Faculté de Foresterie et de Géomatique
Université Laval
2405 rue de la Terrasse, G1V 0A6 Québec (Qc)
Tel: (418) 656-2131 poste 2620

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to