[R] Exporting Numerous Graphs

2009-09-14 Thread Chris Li
Hi all, I have got 27 graphs to export (not a lot...I know!). How can I fit all of them into a single file like PNG without adjusting the size of the graphs? What's in my mind is like pasting graphs into Word, in which I can just scroll down to view the graphs. Thanks for your attention. Much

[R] Exporting Numerous Graphs

2009-09-14 Thread Polwart Calum (County Durham and Darlington NHS Foundation Trust)
I have got 27 graphs to export (not a lot...I know!). How can I fit all of them into a single file like PNG without adjusting the size of the graphs? What's in my mind is like pasting graphs into Word, in which I can just scroll down to view the graphs. Pretty sure PNG can only cope with

Re: [R] Exporting Numerous Graphs

2009-09-14 Thread baptiste auguie
Hi, It's probably easiest with the pdf (or postscript) device, pdf(all.pdf) for(ii in 1:27) plot(rnorm(10), main=paste(plot, ii)) dev.off() Bitmap-based devices can generate sequential filenames (Rplot1.png, Rplot2.png, ...) that you could combine in a single document using external tools

Re: [R] Exporting Numerous Graphs

2009-09-14 Thread jim holtman
You can wite them out as single files (png('file-%02d.png',...)) and then import them to Word. On Mon, Sep 14, 2009 at 1:55 AM, Chris Li chri...@austwaterenv.com.au wrote: Hi all, I have got 27 graphs to export (not a lot...I know!). How can I fit all of them into a single file like PNG

Re: [R] Exporting Numerous Graphs

2009-09-14 Thread Henrique Dallazuanna
Try this: library(RDCOMClient) w - COMCreate('Word.Application') w[[Visible]] - TRUE w[[DisplayAlerts]] - FALSE doc - w$Documents()$Add(Template=Normal, NewTemplate=FALSE, DocumentType=0) fooPasteGraphs - function(index, ...){ win.metafile() plot(rnorm(100)) dev.off()