Re: [R] Extracting R plots from MS Word

From: Philipp Pagel <philipp.pagel.lists_at_t-online.de>
Date: Thu 29 Jun 2006 - 21:38:04 EST

On Thu, Jun 29, 2006 at 05:15:08PM +1200, maj@stats.waikato.ac.nz wrote:
> 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).

Open the doc file in OpenOffice, save in sxw format (openoffice's old native format), unpack the file with unzip and find the figure in the resulting directory.

I'm not sure if and how this works with the new odt format used by openoffice now, but sxw will work.

cu

        Philipp

-- 
Dr. Philipp Pagel                            Tel.  +49-8161-71 2131
Dept. of Genome Oriented Bioinformatics      Fax.  +49-8161-71 2186
Technical University of Munich
Science Center Weihenstephan
85350 Freising, Germany

 and

Institute for Bioinformatics / MIPS          Tel.  +49-89-3187 3675
GSF - National Research Center               Fax.  +49-89-3187 3585
      for Environment and Health
Ingolstädter Landstrasse 1
85764 Neuherberg, Germany
http://mips.gsf.de/staff/pagel

______________________________________________
R-help@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
Received on Fri Jun 30 01:11:29 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 30 Jun 2006 - 02:12:39 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.