Re: [R] High resolution plots

From: Peter Dalgaard <>
Date: Thu 14 Jul 2005 - 08:21:57 EST

Luis Tercero <> writes:

> Dear R-help community,
> would any of you have a (preferably simple) example of a
> presentation-quality .png plot, i.e. one that looks like the .eps plots
> generated by R? I am working with R 2.0.1 in WindowsXP and am having
> similar problems as Knut Krueger in printing high-quality plots. I have
> looked at the help file and examples therein as well as others I have
> been able to find online but to no avail. After many many tries I have
> to concede I cannot figure it out.
> I would be very grateful for your help.

What is the real issue here? Import trouble? If you're importing to Word/PowerPoint, why not use the Windows metafile? Perhaps they are too ugly compared to EPS by your taste?

Bitmapped formats are a pain to deal with in general. In principle, you could just crank up the resolution to (say) 600 dpi, but if your software rescales the image even slightly, things look horrible.

For web graphics, I found a reasonably working solution by plotting at a higher resolution than you need, then smoothing the image slightly and finally rescaling it. This method is archived at, but it does need some unixy tools like the pnm toolchain. I wouldn't know if there are Windows versions of those.

   O__  ---- Peter Dalgaard             ุster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (                  FAX: (+45) 35327907

______________________________________________ mailing list
PLEASE do read the posting guide!
Received on Thu Jul 14 08:25:37 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:33:38 EST