[R-SIG-Mac] poor quality png/tiff/pdf on mac

Marc Schwartz marc_schwartz at me.com
Wed Nov 5 14:13:18 CET 2014


Hi,

I am presuming that the PNG file that was attached to the original post by Mark is a screen cap and not the original file created by R.

If so, you might review the following R FAQ:

  http://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-are-there-unwanted-borders

Regards,

Marc Schwartz


> On Nov 5, 2014, at 2:24 AM, Colin A. Smith <colin at colinsmith.org> wrote:
> 
> Hi Mark,
> 
> I assume you’re using a Mac. This problem comes from the way Quartz renders immediately adjacent filled polygons. To get around it, you can add type=“cairo” or type=“Xlib” as an argument to the tiff, png, or jpeg call. If you really want to make a PDF, I can post those instructions to the list, but it is a bit more involved and uses some custom code I’ve written.
> 
> Cheers,
> 
> Colin
> 
> PS: I would avoid cross-posting to multiple lists in the future. That’s generally frowned upon.
> 
>> On Nov 5, 2014, at 4:14, M P <mzp3769 at gmail.com> wrote:
>> 
>> Hello,
>> I cannot fix image quality e.g. generated with filled.contour(). Whether I use tiff, png, jpeg, or pdf I always see vertical and horizontal lines at every grid increment on the plots like the attached. There is no problem when I plot in x11.
>> How to fix that?
>> Thanks,
>> Mark



More information about the R-SIG-Mac mailing list