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()
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 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 without adjusting the size
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
> 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 s
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 ap
5 matches
Mail list logo