Hi:
It's a little hard to help on that front without a reproducible example but
you could read the help page of plot.lda in the MASS package, where you
would find that it takes both xlab and ylab arguments, and for which you can
probably pass main as well since it contains a ... argument. Did you try it?
If you want to change group names, it's generally easier to make the change
in the data (add a new variable with modified values) and use that in the
model call.
HTH,
Dennis
On Fri, Sep 24, 2010 at 2:57 PM, Chen, Xi <xi.chen@ttu.edu> wrote:
> 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
> ______________________________________________
> 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.
>
[[alternative HTML version deleted]]