[R] help for high-quality plot (wmf) in files

Greg Snow Greg.Snow at intermountainmail.org
Tue Sep 18 20:19:00 CEST 2007


Standard sweave may not work for this, but there is the odfWeave package
that will create openoffice documents which can easily be converted to
word docs (I have used this for creating sets of graphs to send to
clients who only use word).  I don't know if it can generate .wmf files
or not, but it does produce pretty good quality graphics (best if you
specify up front what size you want the graphs to be).

Hope this helps,

-- 
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at intermountainmail.org
(801) 408-8111
 
 

> -----Original Message-----
> From: r-help-bounces at r-project.org 
> [mailto:r-help-bounces at r-project.org] On Behalf Of Bert Gunter
> Sent: Monday, September 17, 2007 9:34 AM
> To: 'Gabor Grothendieck'; 'Zheng Lu'
> Cc: r-help at stat.math.ethz.ch
> Subject: Re: [R] help for high-quality plot (wmf) in files
> 
> 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: r-help-bounces at r-project.org 
> [mailto:r-help-bounces at r-project.org] On Behalf Of Gabor Grothendieck
> Sent: Sunday, September 16, 2007 10:55 AM
> To: Zheng Lu
> Cc: r-help at stat.math.ethz.ch
> 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 <zlu at umich.edu> 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 at 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.
> 



More information about the R-help mailing list