May I ask a related question to tack on to this thread. One can also output a wmf plot to a file through the win.metafile() call. But as the help file says, due to Windows limitations only one plot per file is allowed and one must use parameterized filenames to produce multiple plots, which I often have in e.g. lattice displays.
My question: For those who deal routinely with this issue, what sorts of strategies do you use to produce and keep track of multiple wmf files (in Windows)? Any code (or packages) or tricks for combining all the plots into one file with suitable identifying labels? NOTE: AFAICS Sweave doesn't work, as it produces only pdf graphs. Feel free to reply off list, as this is not really an R question. Cheers, Bert Bert Gunter Genentech Nonclinical Statistics -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gabor Grothendieck Sent: Sunday, September 16, 2007 10:55 AM To: Zheng Lu Cc: [EMAIL PROTECTED] Subject: Re: [R] help for high-quality plot Use windows metafile format. Its a vector graphic format so it will display in full resolution. png is bitmapped and so won't. Also you can edit a wmf graphic in Word using Word's built in graphic editor so you could change the labels, etc. even after you have imported it. Right click the graphic in R and save or copy it as a metafile. On 9/16/07, Zheng Lu <[EMAIL PROTECTED]> wrote: > Dear all: > > I am curious how to generate high-quality plot and graph with R and > input it into my word document. my plot was always generated in device > 2, when I save it as PNG, the quality is poor. Thank you very much for > your consideration and time. > > > ZLu > ______________________________________________ R-help@r-project.org 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.