I love the plots that ggplot generates. However, it is still somewhat cumbersome to get publication quality plots directly. I usually have to do some post processing in Illustrator (i.e. changing fonts, numbering figures etc). While I could save as tiff or png, eps is best for manipulating figures in Illustrator (I can ungroup objects, move the legend/text etc).
When I save a ggplot object with some transparency (either in points or a smoother) I get this error:
Warning message:
In grid.Call.graphics("L_points", x$x, x$y, x$pch, x$size) :
semi-transparency is not supported on this device: reported only once per page
Is there a workaround?
R’s eps “device” doesn’t support partial transparency, but, if I remember correctly, its PDF device does. Illustrator ought to be able to read PDFs with equal facility to EPSes, or if not, try converting them after generation with
pdftops(notpdf2ps, they are totally different programs and pdf2ps’s output is … inferior).Note that R doesn’t try to optimize its PDF output at all, so even if you do get a plot that needs no postproduction, you will want to run it through a compression utility like
qpdfat the very least.