[R] \ll and \gg in expression()

Peter Dalgaard p.dalgaard at biostat.ku.dk
Sun Feb 10 09:49:46 CET 2008


Prof Brian Ripley wrote:
> On Sat, 9 Feb 2008, Michael Kubovy wrote:
>
>   
>> On Feb 9, 2008, at 4:41 PM, Prof Brian Ripley wrote:
>>
>>     
>>> On Sat, 9 Feb 2008, Michael Kubovy wrote:
>>>
>>>       
>>>> How do I enter 'much greater than' and 'much less than'  symbols in an
>>>> expression?
>>>>         
>>> Those are not in the Adobe Symbol encoding used for plotmath.
>>>
>>> Since you have not told us your platform and locale as requested in the 
>>> posting guide
>>>       
>> R version 2.7.0 Under development (unstable) (2008-02-05 r44340)
>> i386-apple-darwin8.10.1
>>
>> locale:
>> C
>>
>>     
>>> I don't know if the following is relevant to you.
>>>
>>> If you have a suitable Unicode font and the means to use it (which most 
>>> likely means a UTF-8 locale in R < 2.7.0) they are the glyphs for "\u226a" 
>>> and "\u226b" (see 
>>> http://www.alanwood.net/unicode/mathematical_operators.html).  A quick 
>>> check suggests that not many fonts do.
>>>       
>> Thanks. The Mac character palette tells me that they correspond to Unicode 
>> 226A and B or UTF8 E2 89 AA and AB.
>>
>> My question now is, how do I tell expression() to use the glyphs for these?
>>     
>
> "\u226a"  and "\u226b", as I said.   But not in a C locale.
>
>   
Otherwise, a quick approximation could be expression(x~">>"~1). (We 
don't do negative thin space, do we? That could make it look better.)

-- 
   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)                  FAX: (+45) 35327907



More information about the R-help mailing list