Re: [R] figure margins too large for a barplot in png, pdf ok

From: Alexy Khrabrov <>
Date: Wed, 07 May 2008 00:39:13 -0700

On May 6, 2008, at 10:30 PM, Prof Brian Ripley wrote:

> What were H & W? For png() they are (by default) in pixels, for
> pdf() in inches.
> You haven't told us your OS, but I guess Mac OS. Please update to R
> 2.7.0: that offers you two new png() devices for higher-quality
> plots, and various other improvements. (If you want to use the
> cairo-based png() at other than 72dpi, use R-patched or remember
> that the pointsize is mistakenly in pixels.)

For some reason, R 2.6.2 on Mac OSX (indeed) stopped doing png at all, even for plot(1:10). I've been using a postcard printer with A5 size in between, was wondering if that affected things -- and changed that in Page Setup to US Letter, to no avail. H an W were 600 x 800, resp., and most importantly this same code worked with R 2.6.0 before...

In any case, simply went and installed the 2.7.0, recompiled littler, and it all works fine now, just as before. (Hope the 4/22 build for Mac OSX incorporates Simon's recentmost fixes.) Thanks!

Alexy mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Wed 07 May 2008 - 07:43:51 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 07 May 2008 - 08:30:36 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive