I'd suggest:
-- create the graphics full-size, and then shrink as necessary in Pages
-- avoid JPG because it's lossy
-- don't use PDF for graphics with *lots* of points, as the resulting
file size may be very large
Ben
--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: http://gist.github.com/270442
To post: email ggp...@googlegroups.com
To unsubscribe: email ggplot2+u...@googlegroups.com
More options: http://groups.google.com/group/ggplot2
I prefer to create the graphics directly at the dimensions you want them to be in the final document. Resizing raster image leads to loss of quality. Furthermore I fin dit easier to keep font sizes consistent among plots with different sizes when I don’t have to resize the plot afterwards.
Note that pdf and Word don’t mix well.
Png works quite well for high quality graphics (when created at the desired dimensions).
Best regards,
Thierry
ir. Thierry Onkelinx
Instituut voor natuur- en bosonderzoek / Research Institute for Nature and Forest
team Biometrie & Kwaliteitszorg / team Biometrics & Quality Assurance
Kliniekstraat 25
1070 Anderlecht
Belgium
To call in the statistician after the experiment is done may be no more than asking him to perform a post-mortem examination: he may be able to say what the experiment died of.
~ Sir Ronald Aylmer Fisher
The plural of anecdote is not data.
~ Roger Brinner
The combination of some data and an aching desire for an answer does not ensure that a reasonable answer can be extracted from a given body of data.
~ John Tukey
--
ggsave(filename=default_name(plot), plot = last_plot(), device=default_device(filename), path = NULL, scale=1, width=par("din")[1], height=par("din")[2], dpi=300, keep = plot$options$keep, drop = plot$options$drop, ...)
It should.
Regarding the resolution, about which you asked earlier, it all depends on how the document will be used. Journals often require a resolution for raster images (most of the time 600dpi). For printing on a regular printer, 300dpi is usually fine. To view the document on screen only, 150dpi should be enough.
Overall, the strategy to adopt unfortunately depends on many factors (which software is used, on what platform, what is the purpose of the document, what are the quality requirements). My general advice would be:
- if it is for a quick job, with no particular requirements, use 150 dpi PNGs at the final size they should have on the document; they will be compatible with everything and shouldn't weight too much
- if you want quality, create PDFs and insert them in the final layout in Pages only (Word on windows does not play nice). I would also create them at 1.5 or 2 times the final size and increase the font size to compensate for the later shrinking; this makes the lines (in particular grid lines) thiner and usually looks better in a high quality document. You could also alter the theme to make grid lines and other elements thinner. Of course, this might juste be a matter of personal preference ;)
Jean-Olivier Irisson
---
Observatoire Océanologique
Station Zoologique, B.P. 28, Chemin du Lazaret
06230 Villefranche-sur-Mer
Tel: +33 04 93 76 38 04
Mob: +33 06 21 05 19 90
http://jo.irisson.com/
-- David K Stevens, P.E., Ph.D., Professor Civil and Environmental Engineering Utah Water Research Laboratory 8200 Old Main Hill Logan, UT 84322-8200 435 797 3229 - voice 435 797 1363 - fax david....@usu.edu