[R] Greek character and R

Duncan Murdoch murdoch.duncan at gmail.com
Thu Mar 3 16:29:55 CET 2011


On 11-03-03 8:15 AM, Filoche wrote:
> 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?
>

Use

mytitle <- substitute(paste(delta^13,'C Station ', ival), list(ival=i))

Duncan Murdoch



More information about the R-help mailing list