[R] Beginners questions on matplot and legend

judith.baltsar@gmx.de judith.baltsar at gmx.de
Sat Dec 11 10:35:39 CET 2004


Dear list members,
I have a problem that is probably simple to solve but at the moment 
I have no clue at all:

I have done a simple matplot
matplot(x,y,pch=symb, xlab="Axis 1", ylab="Axis 2", main="PCA of 
plot x trait matrix")
x has the X-axis values, y has four columns of y-values and now I 
want to have a simple legend for the four symbols defined by symb. 
Easy probably, but maybe someone can give me a hint.

Thank you very much
Judith




More information about the R-help mailing list