[R] Question about legend

Gabor Grothendieck ggrothendieck at gmail.com
Fri Mar 28 05:01:45 CET 2008


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.
>



More information about the R-help mailing list