An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20081011/e6c6c910/attachment.pl>
graphics
4 messages · Darja Poklukar, Hadley Wickham, Jim Lemon +1 more
On Sat, Oct 11, 2008 at 3:06 AM, Darja Poklukar <darja.poklukar at siol.net> wrote:
I just want to ask how to enlarge the resolution of my plots in R. For ex. for publising I would like a picture of resolution minimal 500 dpi, all I managed was picture of dim 5,28 X 5,83 with 118 pixels/cm.
What did you try? Have you tried reading the help for png or tiff? Hadley
Darja Poklukar wrote:
I just want to ask how to enlarge the resolution of my plots in R. For ex. for publising I would like a picture of resolution minimal 500 dpi, all I managed was picture of dim 5,28 X 5,83 with 118 pixels/cm.
Hi Darja, The usual answer is to increase the size of the image. For example, if you are using the one of the bitmapped devices, the default resolution is 480x480 pixels. If you now have 118 pixels/cm (300 dpi) and you were using the default resolution, by specifying 800x800 pixels, you should get the desired output resolution when the image is scaled to your output size. Jim
On Sun, 12 Oct 2008, Jim Lemon wrote:
Darja Poklukar wrote:
I just want to ask how to enlarge the resolution of my plots in R. For ex. for publising I would like a picture of resolution minimal 500 dpi, all I managed was picture of dim 5,28 X 5,83 with 118 pixels/cm.
Hi Darja,
The usual answer is to increase the size of the image. For example, if you are using the one of the bitmapped devices, the default resolution is 480x480 pixels.
That is a size, not a resolution.
If you now have 118 pixels/cm (300 dpi) and you were using the default resolution, by specifying 800x800 pixels, you should get the desired output resolution when the image is scaled to your output size.
That will result in very small text and hence small margins. The documented approach is to set the res= argument, and use something like png(width=10, height=10, units="cm", res=600) (That's for current R, but the posting guide asks you to mention that, *and* to update before posting.)
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