[R] Combining greek letters with the contents of variables

Uwe Ligges ligges at statistik.tu-dortmund.de
Sun Jan 4 17:17:49 CET 2009


I feel this becomes a frequently asked question, hence I tried Google 
and typed "R main expression greek" --- and got an answer:
https://stat.ethz.ch/pipermail/r-help/2006-July/109934.html

Uwe Ligges




Ingeborg Schmidt wrote:
> Dear r-help list,
> I am trying to combine a greek letter lambda with the contents of a variable v in the title of a plot. However, it seems that having v inside the expression() function causes it not to be evaluated, on the other hand having expression(lambda) inside something else like paste causes it to be evaluated to a string. Here is an example of what I want to do:
> title(main=expression("Value of "*Lambda*paste(" = ",v,sep="")))
> Is there any solution for this?
> 
> Cheers,
> Ingeborg Schmidt
> 
> 
> 
>       
> 	[[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