[R] How to embed italic Greek letters in a eps file?

Julia Uitz juitz at ucsd.edu
Tue Apr 20 01:29:08 CEST 2010


Hi,

I need to add on a plot text containing italic Greek characters using 
the function mtext (i.e. I cannot use Hershey vectors). The characters 
are nicely displayed when the file is saved as png but not when saved as 
eps. See code below as example:

#postscript('test.eps')
png('test.png')

plot(1,1, type = 'n')
mtext(side = 3, line = 2, expression(italic('\u03bc')))

graphics.off()

Does anyone have an idea on how to solve this issue?

FYI I use R 2.10.1 for Max OS X (v. 10.6.3) but this is not an OS 
related issue (I have also tried with Windows).

Many many thanks in advance,

- Julia

-- 
Julia Uitz
Scripps Institution of Oceanography
University of California San Diego



More information about the R-help mailing list