[R] Special characters: plus/minus - a method that works

Peter Alspach PAlspach at hortresearch.co.nz
Tue Mar 21 03:35:43 CET 2006


Gabor Grothendieck wrote:

> Another way that works on my Windows XP system is to use "\261" .

Please note Windows escape codes are not portable thus not recommended as Martin Maechler pointed out in a response to a suggestion of mine:

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


Peter Alspach

______________________________________________________

The contents of this e-mail are privileged and/or confidenti...{{dropped}}




More information about the R-help mailing list