Re: [R] multiple print commands in win.metafile()

2010-03-20 Thread Greg Snow
-help-boun...@r-project.org [mailto:r-help-boun...@r- project.org] On Behalf Of Kim Jung Hwa Sent: Thursday, March 18, 2010 10:37 AM To: r-help@r-project.org Subject: [R] multiple print commands in win.metafile() Hi All, I need a file which I can import to MS Word, I'm trying win.metafile

[R] multiple print commands in win.metafile()

2010-03-18 Thread Kim Jung Hwa
Hi All, I need a file which I can import to MS Word, I'm trying win.metafile(), but it does not seem to support multiple print commands at once (please see below). Is there an alternative to get plots file which can be used in powerpoint/word? # R code: # this does not work; but same thing works

Re: [R] multiple print commands in win.metafile()

2010-03-18 Thread jim holtman
?win.metafile For win.metafile only one plot is allowed per file, and Windows seems to disallow reusing the file. So the *only* way to allow multiple plots is to use a parametrized filename as in the example. win.metafile(Rplot%02d.wmf, pointsize = 10) Notice the %02d in the file name. On Thu,

Re: [R] multiple print commands in win.metafile()

2010-03-18 Thread Kim Jung Hwa
Hi Jim, thank you for your reply. Apart from win.metafile(), is there some other function available which can handle multiple prints or par(mfrow=c(2,2)) command and eventually can be used in powerpoint/word. thanks, Kim On Thu, Mar 18, 2010 at 12:42 PM, jim holtman jholt...@gmail.com wrote:

Re: [R] multiple print commands in win.metafile()

2010-03-18 Thread jim holtman
It depends on what you want them for. With win.metafile, what is the problem with multiple files? You can still include them in powerpoint/word. If you want it in one file, then use PDF and you can cut/paste the graph from the pages that you want. I typically create a PDF file if I have a

Re: [R] multiple print commands in win.metafile()

2010-03-18 Thread Kim Jung Hwa
Nothing wrong with that, its working fine... thanks a lot! Kim On Thu, Mar 18, 2010 at 2:16 PM, jim holtman jholt...@gmail.com wrote: It depends on what you want them for. With win.metafile, what is the problem with multiple files? You can still include them in powerpoint/word. If you