Re: [R] Question about legend

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Fri, 28 Mar 2008 00:01:45 -0400

For the legend= argument use this in place of what you have now:

legend = expression("0.5th ES test","0.75th ES test", chi^2 ~ test, "t test")

On Thu, Mar 27, 2008 at 11:54 PM, kate <yhsu6_at_uiuc.edu> wrote:
> My original legend is
>
> matplot(c,cbind(ES5,ES75,chisq,t),type ='l', col=c("brown","red","blue","black"),ylab='power')
>
> legend(5,0.7,paste(c("0.5th ES test","0.75th ES test", "Chi-square test", "t test")),col=c("brown","red","blue","black"),lty=1:4,cex=1)
>
> I would like to change "Chi-square" to the greek letter chi^2, how could I do it in R?
>
> Thanks,
>
> Kate
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help_at_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.
>



R-help_at_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. Received on Fri 28 Mar 2008 - 04:13:06 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 28 Mar 2008 - 04:30:26 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive