[R] plot greek letter in italic

Prof Brian Ripley ripley at stats.ox.ac.uk
Thu May 4 20:41:41 CEST 2006


On Thu, 4 May 2006, Tord Snäll wrote:

> Hi,
> Could someone please let me know how to plot greek letters in italic.
>
> text(0,14,expression(italic(rho)[italic(f)])) only plots the f in italic and
> text(37,40,expression(italic(rho))) doesn't plot rho in italic.
>
> I have checked demo(plotmath), ?plotmath, FAQ, and the archives
> 2004-2006 without finding the answer.

There is no italic symbol font available on most devices.  So unless you 
try to plot Greek (not math symbol Greek) you are out of luck.

> I'm using R 2.1.1. and Windows XP.

Time for an update.

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