[R] How can I use a script "l" (LaTeX \ell) in mathematical annotation of plots?

Prof Brian Ripley ripley at stats.ox.ac.uk
Sun Oct 13 22:06:11 CEST 2013


On 13/10/2013 18:53, Byron Dom wrote:
> Due to convention a script "l" - $$\ell$$ (LaTeX \ell) is used to represent a certain quantity in something I'm working on. I'm unable to figure out how to use it in R. It's not included in the list on ?plotmath.
>
> Can anyone tell me how to use it?  Its unicode is U+2113. This page has a list of various encodings of it: http://www.fileformat.info/info/unicode/char/2113/encoding.htm.  Is there a way to include it by using one of these encodings somehow?
> 	[[alternative HTML version deleted]]

What do you want to do with it?  plotmath is about plotting, but you 
have not otherwise mentioned that, let alone the device on which you 
want to plot.

Read the help for plotmath: on some plot devices, just use "\u2113".  It 
is not AFAICS in the Adobe symbol encoding.



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