[R] Extracting R plots from MS Word

maj at stats.waikato.ac.nz maj at stats.waikato.ac.nz
Fri Jun 30 02:15:32 CEST 2006

Thanks to all those who responded to my request about extracting R plots
from MS Word. I decided to try Gabor Grothendieck's second suggestion and
saved the Word document as html. (I may yet try some of the other

Saving the .doc as .htm indeed produced a folder with many of the images
in .gif form. However some of my images seemed to be described by files
with .wmz or .emz extensions. I am not quite sure how to change these into
.gif or .eps or anything useful!

Cheers,  Murray Jorgensen

> Click the graphic, press ctrl-C to copy it to the clipboard and then
> using ctrl-V paste it into mspaint or Xnview (free, find it via google) or
> other
> graphics program and then save it from there.   Which program will
> work will depend on the format of the image.
> Another possibility is to save the Word file in HTML format.  In
> Word, choose File | SaveAs and choose the Save As Type to be Web Page.
> That will create an HTML file plus it will create a folder with
> one file per image.
> On 6/29/06, maj at stats.waikato.ac.nz <maj at stats.waikato.ac.nz> wrote:
>> Hi,
>> I am revising a paper that I am a co-author of. The figures are plots
>> generated from R but at the moment I do not have the R code that
>> generates
>> them.
>> As this is time critical I would like to slightly abuse the list by
>> asking
>> whether anyone knows how to extract from MS Word into a stand-alone
>> graphics file a plot that was pasted into Word from R (probably as a
>> Windows Metafile, but possibly as a bitmap).
>> I would be very grateful for help with this.
>> Regards,  Murray Jorgensen
>> ______________________________________________
>> R-help at stat.math.ethz.ch mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide!
>> http://www.R-project.org/posting-guide.html

More information about the R-help mailing list