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

______________________________________________
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