Skip to content
Prev 169576 / 398513 Next

undesired grid in ps/eps outputs generated by filled.contour or image

Thanks to Prof. Ripley for pointing out my error here and my apologies
for leaving the impression that this was related to the R graphics devices.

As it turns out, this is uniquely a PS/PDF viewer issue related to the
use of anti-aliasing in the viewer.

I had initially used Evince, which is the default PS/PDF viewer in GNOME
(Linux desktop environment). In Evince, there does not appear to be an
option to disable anti-aliasing, either within the application or in
GConf, which is another application to configure GNOME application
related settings.

When using Adobe's Acrobat Reader for the PDF file, if I go into Edit ->
Preferences -> Page Display and disable "Smooth line art", the lines do
indeed go away. There are two other anti-aliasing settings there,
"Smooth Text" and "Smooth images", which do not appear to have any
effect here.

I installed gsview, which is no longer part of the default Ghostscript
installation for Fedora (it is now part of the new RPMFusion repo).

In gsview, if I go into Media -> Display Settings and change "Graphics
Alpha" from 4 bits to 1 bit (to disable anti-aliasing), the image
displays properly. The "Text Alpha" setting does not appear to affect this.

So, to reiterate, this is a PS/PDF viewer application problem and not an
R graphics device issue. If you are unable to disable anti-aliasing in
the viewer that you are using, try another application.

Regards,

Marc