Re: [R] color of math annotation in legend

2011-07-28 Thread Peter Ehlers
1)), expression(paste(alpha," = ", 2))),text.col=c("black","red")) > Date: Thu, 28 Jul 2011 02:32:04 -0500 From: zhongyi-y...@uiowa.edu To: r-help@r-project.org Subject: [R] color of math annotation in legend Dear useRs, Can someone help me to adjust the

Re: [R] color of math annotation in legend

2011-07-28 Thread Zhongyi Yuan
l='black') > lines(x,z,col='red') > legend('topleft',c(expression(paste(alpha," = ", 1)), > expression(paste(alpha," = ", 2))),text.col=c("black","red")) > > > > > > Date: Thu, 28 Jul 2011 02:32:04 -0500 > &

Re: [R] color of math annotation in legend

2011-07-28 Thread Tyler Rinker
ot;black","red")) > Date: Thu, 28 Jul 2011 02:32:04 -0500 > From: zhongyi-y...@uiowa.edu > To: r-help@r-project.org > Subject: [R] color of math annotation in legend > > Dear useRs, > > Can someone help me to adjust the color of math annotation in a leg

[R] color of math annotation in legend

2011-07-28 Thread Zhongyi Yuan
Dear useRs, Can someone help me to adjust the color of math annotation in a legend? The following code gives me a black "alpha = 2". x=y=1:100 z=seq(0.5,50,by=0.5) plot(x,y,type='l',col='black') lines(x,z,col='red') legend('topleft',c(expression(paste(alpha," = ", 1)), expression(paste(alpha," =