[R] Greek character and R

rex.dwyer at syngenta.com rex.dwyer at syngenta.com
Thu Mar 3 15:32:50 CET 2011


mytitle = parse(text=paste("expression(paste(delta^13,'C Station ',",i,"))"))
title(mytitle)

-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of Filoche
Sent: Thursday, March 03, 2011 8:16 AM
To: r-help at r-project.org
Subject: [R] Greek character and R

Dear R users.

In a loop, I set the title of my graph with :

        mytitle = expression(paste(delta^13,'C Station ', i)
        title(mytitle)

However, instead of using value of i, it will literally use "i" character.

Any one know the way to concatenate the value of i to the mathematical
expression?

With regards,
Phil



--
View this message in context: http://r.789695.n4.nabble.com/Greek-character-and-R-tp3333304p3333304.html
Sent from the R help mailing list archive at Nabble.com.

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




message may contain confidential information. If you are not the designated recipient, please notify the sender immediately, and delete the original and any copies. Any use of the message by you is prohibited. 


More information about the R-help mailing list