[R] High resolution plots

Peter Dalgaard p.dalgaard at biostat.ku.dk
Thu Jul 14 00:21:57 CEST 2005


Luis Tercero <luis.tercero at 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 at biostat.ku.dk)                  FAX: (+45) 35327907




More information about the R-help mailing list