Post

1 follower Follow
0
Avatar

Problem reading exported PDFs in other programs

I have started using the PDF export function to export my publication quality figures. However, I often like to do a little post-processing in Illustrator.

When opening many plots in illustrator (e.g. a ggplot geom_point plot) points are represented using a character in an absent font, and thus rendered suboptimally using a different font. The fix for this is to include a parameter useDingbats = FALSE in your call to pdf(...).

Love your work, keep it up!

Ian Pylvainen

Please sign in to leave a comment.

4 comments

0
Avatar

Hi there,

Good catch! One question though, I'd hate to set useDingbats = FALSE and then have other users object on the grounds that they wanted the dingbats variation of small circles. Do you have any insight into whether most users care about this?

If there is some disagreement about what the optimal value is by class or user or problem, then we could introduce an option in the Print to PDF dialog. Short of this, I noticed there is a pdf.options function which you could call (perhaps in .Rprofile) to set the global default for useDingbats to FALSE in your installation.

Thanks again for your input. Any additional insight you have much appreciated.

J.J.

Ian Pylvainen 0 votes
0
Avatar

Thanks for the response JJ. I'm not too sure about how widely this
problem is found - I only came across it myself after using RStudio
and finding the Export PDF function so convenient that it changed my
publication graphics workflow.

Given that using pdf.options() is indeed an acceptable workaround it
might be wise for RStudio to accept R's defaults. I'm sure the
authors of the pdf function have given the much more informed
thought about what constitutes a sensible default that I could.
Perhaps all that is needed is a label on the bottom of the export pdf
dialog pointing out the further options can be set using that
function? A deluxe version of this could be the ability to set
pdf.options through the RStudio GUI.

Cheers,

Fmark

Ian Pylvainen 0 votes
0
Avatar

Francis,

Ok, I think what we'll do is enhance the Print to PDF dialog to expose those options (perhaps in an "advanced" pane).

J.J.

Ian Pylvainen 0 votes