[R] varphi symbol for ylab expression

Prof Brian Ripley ripley at stats.ox.ac.uk
Tue Jan 24 09:07:34 CET 2006


On Mon, 23 Jan 2006, Kilian Plank wrote:

> it is possible to invoke certain graphical functions (e.g. curve)
> with an expression argument, e.g. "ylab=expression(phi)".

Well, that's a internal (to curve, via plot.default) call to title(), and 
the use of expressions in graphical labels is called 'plotmath'.

> There are some greek letters with a second script. For instance, in 
> latex two symbols do exist: phi and varphi. Is the second symbol also 
> available in an expression()? If yes, how?

?plotmath tells you 'phi1' (in current R 2.2.1).  The next version of R 
(2.3.0) will also allow varphi as a synonym.

Be careful though: TeX (not 'latex') names for these are not standard, and 
over e.g. 'varpi' decidely confusing.  R primarily uses the Unicode/Adobe 
names.

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