I read somewhere that vector graphics such as eps or dpf are more favorable
than alternatives (jpeg, bmp or png) for publication because vector graphics
scale properly when enlarged. However, my problem is that the file generated
from a graph of fixed size is too large (in the order of 10MB) because of
many data points in multiple scatterplots. Any suggestions?
> Gang Chen-4 wrote:
>> However, my problem is that the file generated
>> from a graph of fixed size is too large (in the order of 10MB) because of
>> many data points in multiple scatterplots. Any suggestions?
> Generate pdf, open and save it in Adobe Acrobat which does a compression
> when the setting are correct.
*If* compression is enough, pdf() in R-devel does it, as does
cairo_pdf() in current R. And there are other ways than Acrobat to
compress/compact a PDF file: see ?tools::compactPDF and the 'Writing
R Extensions' manual.
However, compression will not make that much of a difference (maybe a
factor of 3), and the real problem seems to be the inappropriate plot.
If you really need a plot with hundreds of thousands of points (or
more), use a format like PNG -- but there are better ways to display
such plots for most statistical purposes. E.g. image and contour
plots of densities, hexplots, density-dependent thinning ....
this question has been asked on this list for several times. I would suggest you search the list archive (http://r.789695.n4.nabble.com/R-help-f789696.html or www.rseek.com) prior to posting in the future. "graph size many points pdf" would give you at least 10 threads with detailed description. There are numerous solutions and most of them point into Dieters or Brian Ripleys directions.