[R] Printing Central European characters

Barta Zoltan BARTAZ at tigris.klte.hu
Mon Sep 24 13:03:38 CEST 2001



Dear R-users,

I have problems with printing Central European (CE) characters
(e.g. {\H o} and {\H u}) in graphics made by R.

After executing the following code I can see the CE characters with gv
on my screen, but I cannot print them on a postscript printer. 

> postscript(file="proba.ps",enc="ISOLatin2.enc")
> plot(0:15,0:15,type="n")
> grid(15,15,lty=1)
> for(i in c(32:127, 160:255)){x <- i %%16;y <- i%/% 16;points(x,y,pch=i)}
There were 50 or more warnings (use warnings() to see the first 50)
> warnings()
Warning messages:
1: font width unknown for character 127
2: font metrics unknown for character 127
3: font width unknown for character 127
4: font width unknown for character 160
5: font metrics unknown for character 160
6: font width unknown for character 160
7: font width unknown for character 161
8: font metrics unknown for character 161
9: font width unknown for character 161
[...]
> dev.off()
X11 
  2 
> version
         _                
platform i386-pc-linux-gnu
arch     i386             
os       linux-gnu        
system   i386, linux-gnu  
status                    
major    1                
minor    3.1              
year     2001             
month    08               
day      31               
language R                

Note, I have problems with characters for which a warning of 'font
width unknown for...'  printed. These characters are also not centered
on the grid in gv display. From latex there is no problem to print CE
characters. \psfrag also works fine.

Many thanks for your help.

Zoltan Barta







********************
Z. Barta
Behavioural Ecology Research Group, Department of Evolutionary Zoology,
University of Debrecen, Debrecen, Hungary
Phone: 36 52 316 666 ext. 2334; Fax: 36 52 512 491
E-mail: bartaz at tigris.klte.hu; http://delfin.klte.hu/~zbarta
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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