Re: [R] High resolution figures for a paper?

From: Duncan Murdoch <>
Date: Mon, 02 Jun 2008 13:18:25 -0400

On 6/2/2008 11:12 AM, zhijie zhang wrote:
> Dear Rusers,
> My manuscript has been conditionally accepted recently. The problem to
> generate the high resolution figures in R for the manuscript cannot be
> solved by me.
> The journal editor ask me to generate the figures with a minimum resolution
> of 500 dpi. I have tried the *menu-driven method* to save the figures as
> JPEG (100% printed quality), but the results seem not to be very good. I
> have submitted the generated figures twice using the above-mentioned method,
> but the Editor think the resolution is still very low.
> Finally, i used the Photoshop to check the figure. It seems that its
> resolution for JPEG (100% printed quality) is about 72dpi.
> *Does anybody know a better method to save a figure with user-defined
> resolution in R software, especially high resolution? Could u please show me
> an example if possible?*
> I hope to save the figures as TIFF/JPEG format at 1000 dpi.
> Thanks a lot.

Don't use the menu, produce the figure directly. I would recommend against using TIFF or JPEG; a vector format like PDF is much easier. However, if you really want one of those, open the device explicitly. For example,

jpeg("test.jpg", width=5, height=5, units="in", res=500) plot(rnorm(1000))

This will create a very big file, 2500 by 2500 pixels, meant to be displayed as a 5 inch by 5 inch figure.

Duncan Murdoch mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Mon 02 Jun 2008 - 19:04:47 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 Mon 02 Jun 2008 - 19: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