[R] help for high-quality plot (wmf) in files
Bert Gunter
gunter.berton at gene.com
Mon Sep 17 17:34:04 CEST 2007
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
>
More information about the R-help
mailing list