Re: [R] High resolution plots

From: Peter Dalgaard <p.dalgaard_at_biostat.ku.dk>
Date: Thu 14 Jul 2005 - 08:21:57 EST

Luis Tercero <luis.tercero@ebi-wasser.uni-karlsruhe.de> 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 http://tolstoy.newcastle.edu.au/R/help/04/06/1094.html, 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
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)                  FAX: (+45) 35327907

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
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