Hi there,

yet on the topic of greek letters and pdf plotting: when I run the
following code

pdf(file="temp.pdf")
mu=seq(from=-pi, to=pi, length=100)
plot(mu, sin(mu^2),
     type="l",
     xlab=expression(mu%in%(list(-pi,pi))),
     ylab=expression(sin(mu^2)),
     main=expression((list(mu,sin(mu^2)))))
dev.off()

I get a "proportional to" symbol in place of a "mu" and a "not equal
to" in place of a "pi" (see attached file). If I run only

mu=seq(from=-pi, to=pi, length=100)
plot(mu, sin(mu^2),
     type="l",
     xlab=expression(mu%in%(list(-pi,pi))),
     ylab=expression(sin(mu^2)),
     main=expression((list(mu,sin(mu^2)))))

then the characters are displayed correctly.

I would like to know if there is any sort of fixes to this problem,
such as specifying the symbols font or embedding fonts into the pdf
file. Any help would be welcome.

Thanks in advance and best regards,

Eduardo Horta

Attachment: temp.pdf
Description: Adobe PDF document

______________________________________________
R-help@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.

Reply via email to