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

Prof Brian Ripley ripley at stats.ox.ac.uk
Sun Feb 10 06:37:26 CET 2008


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.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-help mailing list