[R] How to change the lengend in a DA figure

Chen, Xi xi.chen at ttu.edu
Fri Sep 24 23:57:21 CEST 2010


Dear all:

I have encountered a problem recently:

I used to plot figure, and using code 
"main="......", xlab=".....",ylab="....." 
to change the legend. But recently I was using R to perform Discriminant Function analysis, and I want to change the group names also add a title to the figure, but I am not sure how to make it work, could you please help me with my problem?

My code is:
library(MASS)
da.anti<-lda(type~ct+rd+ht+ndf+adf+hc+ls+cs)
da.anti
par(family="serif")
plot(da.anti)

I appreciate your help. Thank you.




Xi Chen
Graduate Teaching Scholar
Biological Science Department
Texas Tech University
2500 Broadway, Lubbock TX 79410
Phone: 806-319-1513


More information about the R-help mailing list