varphi symbol for ylab expression

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

varphi symbol for ylab expression

Kilian Plank
Hi all,

it is possible to invoke certain graphical functions (e.g. curve)
with an expression argument, e.g. "ylab=expression(phi)". 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?

Kind regards,

Kilian

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Reply | Threaded
Open this post in threaded view
|

Re: varphi symbol for ylab expression

Prof Brian Ripley
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,                  [hidden email]
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

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html