[R] pdf greek letter typos

Philipp Pagel p.pagel at wzw.tum.de
Thu Jan 27 12:53:56 CET 2011

On Thu, Jan 27, 2011 at 01:29:31AM -0200, Eduardo de Oliveira Horta wrote:
> 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

In my PDF viewer (okular, debian LINUX) the file looks ok. This may
very well be a problem with your pdf viewer. E.g. at work, we are
running fedora and there I have experienced a number of problems like
yours caused by a problem with font substitution in some version of
the poppler library which is uses by many LINUX PDF viewers. Try to
view the file in acrobat reader and possibly other viewers. Also: the
files I had issues with printed correctly.


Dr. Philipp Pagel
Lehrstuhl für Genomorientierte Bioinformatik
Technische Universität München
Wissenschaftszentrum Weihenstephan
Maximus-von-Imhof-Forum 3
85354 Freising, Germany

More information about the R-help mailing list