[R] foreign characters in R plots

Jakub Fast jfast at friko5.onet.pl
Mon Aug 27 15:27:10 CEST 2001


> I've just tried
>
> postscript("latin2.ps", enc="ISOLatin2.enc")
> par(pty="s")
> plot(c(0,15), c(0,15), type="n", xlab="", ylab="")
> title("Centred chars in ISO Latin2")
> grid(15, 15, lty=1)
> for(i in c(32:127, 160:255)) {
>     x <- i %% 16
>     y <- i %/% 16
>     points(x, y, pch=i)
> }
>
> and apart from some missing centering information it looks like
> a table of ISO Latin2 I looked up.

Thank you for the reply. However, as long as your code works perfectly
(apart from centering, which you mentioned), I am still unable to get the
characters for instance in axis labels. Here's what I do:

postscript("test.ps", enc="ISOLatin2.enc")
plot(somedata, log="xy" ..., xlab="Cz\234sto\182\230 wyst\234powania")
dec.off()

This way I get blanks instead of the characters and a couple of warning
messages (~"character width unknown"). The characters do show up on your
table. What am I doing wrong?


Kuba Fast



-- 

OnetKomunikator - porozumiesz sie
z innymi [ http://ok.onet.pl/instaluj.html ]

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