Hi R users:

I will like to have a legend with math symbols and also with
the value of a variable.

But I cannot obtain both at the same time (symbol + value of a
variable):

Here is a reproducible example:

m1<-5
m2<-12
plot(1:5,1:5,type="n")
legend("topleft",legend=c(paste(expression(mu),"=",m1),expression(paste(mu,"=",m2))),lty=1:2)

Thank you for your help.

Kenneth

PD: Using R 2.9.2 on Linux ubuntu 2.6.28-15-generic #49-Ubuntu SMP
Tue Aug 18 19:25:34 UTC 2009 x86_64 GNU/Linuxu

______________________________________________
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