[R] plot cyrillic characters on MacOS X

Vlad Skvortsov vss at 73rus.com
Sun May 13 01:00:26 CEST 2007


Hi!

I'm running R version 2.4.1 (2006-12-18) on MacOS X 10.4; my $LANG is 
ru_RU.KOI8-R.

While trying to plot a graph to PDF with cyrillic characters in the 
legend, I get warnings (in Russian):

 > pdf()
 > plot(c(1), c(1), main="тест")
Warning messages:
1: неизвестна ширина символа 0xd4
2: неизвестна ширина символа 0xc5
3: неизвестна ширина символа 0xd3
4: неизвестна ширина символа 0xd4
5: неизвестна ширина символа 0xd4
6: неизвестна ширина символа 0xc5
7: неизвестна ширина символа 0xd3
8: неизвестна ширина символа 0xd4

(it's "width of character 0xZZ is unknown")

The output PDF doesn't contain glyphs either.

I've been looking through the docs to figure out what possible extra 
parameters I need to specify, but failed to see anything relevant.

I'd appreciate any help. Thanks!

-- 
Vlad Skvortsov, vss at 73rus.com, http://vss.73rus.com



More information about the R-help mailing list