[R] charset in graphics
Peter Dalgaard
P.Dalgaard at biostat.ku.dk
Fri Jul 13 15:40:46 CEST 2007
Prof Brian Ripley wrote:
> On Fri, 13 Jul 2007, Peter Dalgaard wrote:
>
>> The correct incantation seems to be
>>
>> postscript(font="URWHelvetica", encoding="ISOLatin7")
>> plot(0,main=tolower("\u104\u116\u0118\u012e\u0172\u016a\u010c\u0160\u017d"))
>> dev.off()
>>
>
> The encoding should happen automagically in a Lithuanian UTF-8 locale, and
> does for me. But suitable fonts (e.g. URW ones) are needed.
>
OK, I sort of suspected that, although it wasn't entirely clear to me
whether autoconversion would cover cases like en_LT.utf8, if that even
exists. Still, the explicit (portable?) way of doing it is probably
worth knowing too (there could be a few pitfalls with scripts getting
run outside their usual domain).
--
O__ ---- Peter Dalgaard Øster Farimagsgade 5, Entr.B
c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
More information about the R-help
mailing list