[R] Accents in R
p.dalgaard at biostat.ku.dk
Mon Nov 17 17:44:26 CET 2003
Xavier Fernández i Marín <xavier.fim at eresmas.net> writes:
> How can I include accents and signs like 'ñ' 'à' in the plots generated by R?
> I try, but R automatically transforms the name
> > countries <- c("México", "España")
> > countries
>  "M\216éxico" "Espa\216ña"
> I've seen in some Spanish texts about R how is it normal to include labels of
> the plots and other names with accents, but I can't.
> I'm using R 1.8.0 in a Mandrake 9.0
You'll need to get rid of UTF-8 encoding, since R doesn't know how to
deal with it. I'm not sure of the details on Mandrake, but I suspect
you need to diddle /etc/sysconfig/i18n or set some environment
variables (among the ones listed by "locale").
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
More information about the R-help