[R] Latex \ell symbol in plotmath

Mario dos Reis mdosrei at nimr.mrc.ac.uk
Tue Jun 5 15:16:04 CEST 2007


I am using R 2.5.0 on Fedora Linux core 6, AMD 64.

Prof Brian Ripley wrote:
> 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.
> 

Cheers,
Mario dos Reis

mdosrei at nimr.mrc.ac.uk
+44 (0)20 8816 2300

Division of Mathematical Biology
National Institute for Medical Research
The Ridgeway
Mill Hill
London, NW7 1AA, UK



More information about the R-help mailing list