[R] German umlaut in xlab

Henrik Bengtsson hb at maths.lth.se
Sun Apr 7 22:25:25 CEST 2002


> -----Original Message-----
> From: ripley at stats.ox.ac.uk [mailto:ripley at stats.ox.ac.uk]
> Sent: Sunday, April 07, 2002 7:56 PM
> To: Henrik Bengtsson
> Cc: r-help at stat.math.ethz.ch
> Subject: RE: [R] German umlaut in xlab
>
>
> On Sun, 7 Apr 2002, Henrik Bengtsson wrote:
>
> > I have the same problem on WinMe and R v1.4.1 with Swedish keyboard
> > settings:
> >
> >   plot(1:10, xlab="äöü")
> >
> > works in Rgui but not in Rterm under Cygwin bash where it instead prints
> > "quote down", "qoute up" and a "open box". However,
>
> Prints?  It is a plot command. What does it plot?

"Writes" or "draws" is maybe better. So, is it correct English to say "plot
a string of characters"? For me "plot" is more for shapes and data points. I
am asking because I don't know.

> >   plot(1:10, xlab="\344\366\374")
> >
> > does the same thing. Trying
> >
> >   print("\344\366\374")
> >
> > "äöü" will not be shown. Again, with Rgui it works. So there seems to be
> > some differences in the character encoding etc for the upper
> ASCII half. I
> > noticed that when I changed my keyboard settings from Swedish
> to English the
> > plot call above works (but not the print call which I believe
> is due to my
> > Cygwin/bash settings).
>
> I/O in Rterm is entirely at the mercy of the terminal within which it is
> run. In particular, it is unlikely that it is set up to use ISOLatin1
> encoding, whereas Rgui is set up to use WinANSI (which is almost the
> same).
>
> For example, Rterm should work under a correctly set up NTemacs and ESS,
> and indeed it seems to under my rarely used setup.
>
> --
> 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 272860 (secr)
> Oxford OX1 3TG, UK                Fax:  +44 1865 272595

Best

Henrik Bengtsson

Dept. of Mathematical Statistics @ Centre for Mathematical Sciences
Lund Institute of Technology/Lund University, Sweden (+2h UTC)
Office: P316, +46 46 222 9611 (phone), +46 46 222 4623 (fax)
h b @ m a t h s . l t h . s e, http://www.maths.lth.se/bioinformatics/

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list