[R] Latex \ell symbol in plotmath

Prof Brian Ripley ripley at stats.ox.ac.uk
Tue Jun 5 15:52:25 CEST 2007


On Tue, 5 Jun 2007, Alberto Monteiro wrote:

> Prof Brian Ripley wrote:
>>
>> It is Unicode character U+2113, and so on UTF-8 R systems you may
>> well be able to enter it as \u2113 and get it plotted on-screen in a
>> suitable font.  But we'd need to know a lot more about your system
>> to advise on how exactly to do so.
>>
> I must be sleeping, but I can't think about a program that lists
> "all" Unicode characters. A stupid and dirty solution would be:

You realize there are millions of them?  (2^21, in theory.)

> cat("u 31 = \u31\n")
> cat("u 32 = \u32\n")
> ...
>
> How can I vectorize this?

?intToUtf8

E.g. to look at a range around U+2113,

cat(intToUtf8(0x2110L+0:9, TRUE), "\n")


-- 
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