Re: [R] Extracting R plots from MS Word

2006-06-30 Thread maj
Just a note to say what I did. I think that the results were OK but I have yet to hear from the journal. 1. I saved the Word document under another name. 2. I deleted all the contents of the document except the target graphic. 3. I printed to file yielding a .prn file. 4. I changed the extension

[R] Extracting R plots from MS Word

2006-06-29 Thread maj
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

Re: [R] Extracting R plots from MS Word

2006-06-29 Thread Johannes Ranke
Hi, I would also like to know how to do this with MS products alone. However, a nice tool to do this is wmf2eps (http://www.wmf2eps.de.vu/). You can paste windows vector graphics into wmf2eps, and it first saves it as EMF (enhanced metafile), before it creates EPS, which is what I use it for.

Re: [R] Extracting R plots from MS Word

2006-06-29 Thread Gabor Grothendieck
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

Re: [R] Extracting R plots from MS Word

2006-06-29 Thread Jonathan Baron
Another way to do this is with OpenOffice (OO). Read the Word file into OO Writer. Cut the figure. Open OO Draw. Click Paste, and the figure appears in Draw. Save it as EPS, or whatever you like. This works for both EMF and WMF. * [EMAIL PROTECTED] [EMAIL PROTECTED] [060629 08:30]: As

Re: [R] Extracting R plots from MS Word

2006-06-29 Thread Philipp Pagel
On Thu, Jun 29, 2006 at 05:15:08PM +1200, [EMAIL PROTECTED] 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

Re: [R] Extracting R plots from MS Word

2006-06-29 Thread maj
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 suggestions.) Saving the .doc as .htm indeed produced a folder with many of the

Re: [R] Extracting R plots from MS Word

2006-06-29 Thread Gabor Grothendieck
I think these are zipped emf and wmf files. Google for emz extension. On 6/29/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: 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