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," = ", 2))),col=c('black','red'))

Is it possible to make it red? Thanks in advance for your help.

Best,
Zhongyi Yuan

        [[alternative HTML version deleted]]

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

Reply via email to