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

M P mzp3769 at gmail.com
Wed Nov 5 15:45:51 CET 2014


Thanks Colin,
It appears I have an older version of lipng which won't  allow
type="cairo"/"Xlib". Need to ugrade,
Mark

On Wed, Nov 5, 2014 at 6:13 AM, Marc Schwartz <marc_schwartz at me.com> wrote:

> 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
>
>

	[[alternative HTML version deleted]]



More information about the R-SIG-Mac mailing list