[R] superscript in figures - basic question
Prof Brian Ripley
ripley at stats.ox.ac.uk
Tue Jun 14 13:03:42 CEST 2005
On Tue, 14 Jun 2005, Martin Maechler wrote:
>>>>>> "Peter" == Peter Alspach <PAlspach at hortresearch.co.nz>
>>>>>> on Tue, 14 Jun 2005 14:11:47 +1200 writes:
>
> Peter> Ben
>
> Peter> Others have pointed out plotmath. However, for some
> Peter> superscripts (including 2) it may be easier to use
> Peter> the appropriate escape sequence (at in Windows):
>
> Peter> ylab = 'BA (m\262/ha)'
>
> but please refrain from doing that way.
> You should write R code that is portable, and ``plotmath''
> has been designed to be portable. Windows escape codes are not,
> and may not even work in future (or current?) versions of
> Windows with `unusual' locale settings {fonts, etc}.
Indeed, it only works for superscript 2 and 3 and only in Western European
locales (I just happened to be testing Korean). Also, the spacing is not
done as carefully as plotmath.
--
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