Re: [R] Printing Unicode characters in a PDF document

2010-03-20 Thread David Winsemius
On Mar 20, 2010, at 2:53 PM, David Winsemius wrote: Sorry for the noise. I did not read to the end and then pasted the wrong code in as well. I intended to post a suggestion to use: text(1,1, expression(mu)) I'm guessing it is happening because different fonts or families are being used

Re: [R] Printing Unicode characters in a PDF document

2010-03-20 Thread David Winsemius
Sorry for the noise. I did not read to the end and then pasted the wrong code in as well. I intended to post a suggestion to use: text(1,1, expression(mu)) I'm guessing it is happening because different fonts or families are being used for quartz and pdf devices. But I am not skilled at m

Re: [R] Printing Unicode characters in a PDF document

2010-03-20 Thread David Winsemius
?plotmath Try instead: pdf("mu.pdf") plot(1,1, type="n") text(1,1, "\u3BC") dev.off() On Mar 20, 2010, at 2:16 PM, Dennis Fisher wrote: pdf("mu.pdf") plot(1,1, type="n") text(1,1, "\u3BC") dev.off() David Winsemius, MD West Hartford, CT __ R-he

[R] Printing Unicode characters in a PDF document

2010-03-20 Thread Dennis Fisher
Colleagues, OS: OS X R: 2.10.1 I want a mu (µ) to appear in text that is created using a PDF device. However, the µ does not appear as intended; instead, it is replaced by two dots. A minimal example is: > pdf("mu.pdf") > plot(1,1, type="n") > text(1,1, "\u3BC") > dev.off() The "te