[R] Latex \ell symbol in plotmath

Prof Brian Ripley ripley at stats.ox.ac.uk
Tue Jun 5 13:57:26 CEST 2007


On Tue, 5 Jun 2007, Mario dos Reis wrote:

> Is it possible to use the '\ell' (i.e. the log likelihood) in plots?

'plots'?  On what OS and what device?   (There is no general solution 
here.)

> I've been browsing the plotmath documentation unsucesfully.

That symbol is in neither of the Latin-1 nor symbol encoding used in R's 
standard fonts for postscript(), pdf() and the like.  Since it is not in 
the Adobe symbol encoding it is not accessible via plotmath.

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.

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