Re: [R] Greek character and R

From: <rex.dwyer_at_syngenta.com>
Date: Thu, 03 Mar 2011 09:32:50 -0500

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.
______________________________________________
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.
Received on Thu 03 Mar 2011 - 14:37:44 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 03 Mar 2011 - 15:30:18 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive