Printing Unicode characters in a PDF document
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 for quartz and pdf devices. But I am not skilled at managing fonts.
Here's what I came up with using a Hershey font strategy:
?Hershey
> pdf("mu.pdf")
> plot(1,1, type="n")
> text(1,1, "\\*m", vfont=c("sans serif symbol", "plain"))
> dev.off()
--
David.
-- David. On Mar 20, 2010, at 2:38 PM, David Winsemius wrote:
?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
David Winsemius, MD West Hartford, CT
______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
David Winsemius, MD West Hartford, CT