[R] Followup: copy-paste graphics from R to Word on Mac OS X

ripley@stats.ox.ac.uk ripley at stats.ox.ac.uk
Fri Mar 7 08:57:33 CET 2003

On Thu, 6 Mar 2003, Seth Falcon wrote:

> I've encountered some of the same issues with jaggy graphics.  Here
> is what I have found to work pretty well:
> Short and sweet:
> Use the bitmap() function with res=200 to create png files.
> Some explaination:
> As far as I can tell, png(), jpg(), and friends do not allow you to
> set the resolution.  However, you can set the resolution using
> bitmap().  I've had good results with res=200.

Wrong. Png and jpeg don't have a resolution, only a size in pixels.
On both Unix and Windows the png devices set the size directly.
With bitmap you set the size in inches and the resolution, and they 
get multiplied together.

Better advice: use png() directly.

Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

More information about the R-help mailing list