Re: [R] Greek character and R

From: Eik Vettorazzi <E.Vettorazzi_at_uke.uni-hamburg.de>
Date: Thu, 03 Mar 2011 17:42:04 +0100

or even without using 'paste'

plot(1,1,main=bquote(delta^13~'C Station'~.(i)))

Am 03.03.2011 16:45, schrieb William Dunlap:
>
>
> Bill Dunlap
> Spotfire, TIBCO Software
> wdunlap tibco.com
>

>> -----Original Message-----
>> From: r-help-bounces_at_r-project.org 
>> [mailto:r-help-bounces_at_r-project.org] On Behalf Of Duncan Murdoch
>> Sent: Thursday, March 03, 2011 7:30 AM
>> To: Filoche
>> Cc: r-help_at_r-project.org
>> Subject: Re: [R] Greek character and R
>>
>> 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))
>
> Or use bquote():
> mytitle <- bquote(paste(delta^13,'C Station ', .(i)))
>
> Note that the original could not have worked since 'i' and 'delta'
> appeared in the same manner and you only wanted i replaced by it
> value.
>
> Bill Dunlap
> Spotfire, TIBCO Software
> wdunlap tibco.com
>
>>
>> Duncan Murdoch
>>
>> ______________________________________________
>> 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.
>>

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

Department of Medical Biometry and Epidemiology
University Medical Center Hamburg-Eppendorf

Martinistr. 52
20246 Hamburg

T ++49/40/7410-58243
F ++49/40/7410-57790

______________________________________________
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 - 17:37:46 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 - 17:50: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