Re: [R] export many plots to one file

From: ONKELINX, Thierry <Thierry.ONKELINX_at_inbo.be>
Date: Thu 04 Jan 2007 - 17:16:55 GMT


I can think of two options:
1. Use R2HTML and save the html output as PDF 2. Use Sweave and compile the LaTeX file to PDF. Search the mailing list archive on how to save the graphs as png or jpeg (as Sweave will standard generate eps or pdf graphs).

Cheers,

Thierry



ir. Thierry Onkelinx

Instituut voor natuur- en bosonderzoek / Reseach Institute for Nature and Forest

Cel biometrie, methodologie en kwaliteitszorg / Section biometrics, methodology and quality assurance

Gaverstraat 4

9500 Geraardsbergen

Belgium

tel. + 32 54/436 185

Thierry.Onkelinx@inbo.be

www.inbo.be  

Do not put your faith in what statistics say until you have carefully considered what they do not say. ~William W. Watt

A statistical analysis, properly conducted, is a delicate dissection of uncertainties, a surgery of suppositions. ~M.J.Moroney

-----Oorspronkelijk bericht-----
Van: r-help-bounces@stat.math.ethz.ch
[mailto:r-help-bounces@stat.math.ethz.ch] Namens bogdan romocea Verzonden: donderdag 4 januari 2007 17:35 Aan: r-help
Onderwerp: [R] export many plots to one file

Dear useRs,

I have a few hundred plots that I'd like to export to one document. pdf() isn't an option, because the file created is prohibitively huge (due to scatter plots with many points). So I have to use png() instead, but then I end up with a lot of files (would prefer just one).

  1. Is there a way to have pdf() embed images, instead of vector instructions? (What would have to be changed/added, and where? I'd consider that a very useful feature.)
  2. Does anyone have a script for importing many images (png, bitmap, jpg) into one PDF file? I'd prefer something that works both on Windows and GNU.

Thank you,
b.



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Fri Jan 05 04:28:16 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 04 Jan 2007 - 18:30:28 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.