Message-ID: <498C98B9.7090903@comcast.net>
Date: 2009-02-06T20:08:25Z
From: Marc Schwartz
Subject: undesired grid in ps/eps outputs generated by filled.contour or image
In-Reply-To: <e183e0690902061132j18dbd3e9o5cbb89d830560829@mail.gmail.com>
on 02/06/2009 01:32 PM Rachel Albrecht wrote:
> Hi!
>
> Whenever I save a graphic in ps/eps format generated by filled.contour or
> image, an undesired grid is added to it (not visible on the X11 screen). For
> example:
>
> postscript("volcano.eps")
> filled.contour(volcano,col=gray(seq(0,1,,50)),levels=seq(min(volcano),max(volcano),,50))
> dev.off()
>
> Any ideia how to eliminate this grid?
>
> Thanks,
> Rachel
I can confirm the problem, running:
R version 2.8.1 Patched (2009-01-24 r47726)
on Fedora 10.
The problem is actually worse if using the pdf() device, with additional
artifacts present.
There was a posting about this back in 2003:
https://stat.ethz.ch/pipermail/r-help/2003-August/037348.html
with no replies. There is a bug report here from 2004:
http://bugs.r-project.org/cgi-bin/R/Graphics?id=6763
that seems to be related. So it seems the issue has been around for a while.
I tried increasing the granularity of the color scale, though without
any benefit.
Will have to defer to the graphics device wizaRds on this one.
Marc Schwartz