Skip to content
Prev 4378 / 15075 Next

Bug Report

Richard,
    This problem has been around for a while.  Based on an earlier reply
from Simon on this I find the following has always worked.

quartz.save('tmp.pdf',type='pdf')
Sys.sleep(4)
quartz.save('fig4.pdf',type='pdf')

    I recall that plotting twice rather than just the delay helps, but I
don't have notes on that.

    As far as machine speed is concerned I don't think it is necessarily due
to slow machines.  I had the problem on a slow box (G4 2 procs) and also on
my new box (PowerMac 2.6 GHz, 4 cores, with only idle and system programs
running other than R).

    The Quartz output is really nice looking, but many of the journals we
publish in want eps or tiff for final figures.  Also, if your co-authors use
Word and not LaTeX then the pdf figures in the manuscript don't look so
great either.  The ghostscript conversion usually works, but the quality is
lower than the original pdf.  We have found converting to a high resolution
tiff (very large files) is the most reliable way to get figures in journals
without problems.

-John
On 2/13/08 5:53 AM, "Simon Urbanek" <simon.urbanek at r-project.org> wrote: