Re: [R] pdf greek letter typos
Please do read the help page (and state your platform). This is s known PDF viewer bug. E.g.: If you see problems with PDF output, do remember that the problem is much more likely to be in your viewer than in R. Try another viewer if possible. Symptoms for which the viewer has been at fault are apparent grids on image plots (turn off graphics anti-aliasing in your viewer if you) and missing or incorrect glyphs in text (viewers silently doing font substitution). See also the section on 'Cairo fonts' in ?X11, which has a diagnosis and workaround. On Thu, 27 Jan 2011, 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 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 -- Brian D. Ripley, rip...@stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UKFax: +44 1865 272595 __ 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.
Re: [R] pdf greek letter typos
Eduardo, On 01/27/2011 12:53 PM, Philipp Pagel wrote: 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. I'm running Ubuntu, and uninstalling package ttf-symbols-replacement did the trick for evionce Co. on my system (acrobat reader was never affected; but used to show pdfs with transparency quite ugly - there was a discussion with solutions to both problems on the ggplot2 list last fall). HTH, Claudia -- Claudia Beleites Dipartimento dei Materiali e delle Risorse Naturali Università degli Studi di Trieste Via Alfonso Valerio 6/a I-34127 Trieste phone: +39 0 40 5 58-37 68 email: cbelei...@units.it __ 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.
[R] pdf greek letter typos
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 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.