[R] plot cyrillic characters on MacOS X

Vlad Skvortsov vss at 73rus.com
Mon May 21 20:17:45 CEST 2007


Prof Brian Ripley wrote:
> On Sat, 12 May 2007, Vlad Skvortsov wrote:
>
>> Hi!
>>
>> I'm running R version 2.4.1 (2006-12-18) on MacOS X 10.4; my $LANG is
>> ru_RU.KOI8-R.
>
> But we are told that all locales on MacOS X are actually UTF-8: it 
> will not matter as R knows the charset it is using.

I'm not sure what you mean here. Yes, MacOS X does support UTF-8 
natively, but actual terminal session encoding depends on your 
configuration.

[skipped]

>> From the help page:
>
>   family: the font family to be used, see 'postscript'.
>
> encoding: the name of an encoding file.  See 'postscript' for details.
>
> See also the article in R-News 2006-2 by Paul Murrell and myself with 
> worked examples.  It is likely that family="URWHelvetica", 
> encoding="KOI8-R" will work, but you may need to embed the font to 
> display on the Adobe PDF reader (but not on ones based on GhostScript).

Thanks, that helped (though didn't work right away)! Just for the 
record, I've summarized my findings here:

http://vss.73rus.com/blog/notes/cyrillic-fonts-in-R-plots


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



More information about the R-help mailing list