[R] Question about legend parameters

2010-10-18 Thread Dimitri Liakhovitski
Hello! The code below works - if you run it you'll see a stacked area chart generated based on the data example. I only have one understanding question about the legend location (the very last snippet of code): legend(par()$usr[2], mean(par()$usr[3:4]), rev(order.of.vars), xpd=T, bty="n",

Re: [R] Question about legend

2008-03-27 Thread Gabor Grothendieck
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 <[EMAIL PROTECTED]> wrote: > My original legend is > > matplot(c,cbind(ES5,ES75,chisq,t),type ='l', > col=c("bro

[R] Question about legend

2008-03-27 Thread kate
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 th