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