On Mon, 2005-03-10 at 16:31 -0300, Rolf Turner wrote:> A student in one of my courses has asked me about getting R graphics > output (under Linux) into a Word document. I.e. she wants to do her > R thing under Linux, but then do her word processing using Word. > > Scanning around the r-help archives I encountered an inquiry about > this topic --- eps into Word documents --- from Paul Johnson but > found no replies to it. I tried contacting him but the email address > in the archives appeared not to be valid. Does anyone know a > satisfactory solution to the problem of including a graphic which > exists in the form of a *.eps (encapsulated postscript) file into a > Word document. If so, would you be willing to share it with me and > my student? > > If so, please be gentle in your explanation. I am not myself (repeat > ***NOT***) a user of Word! > > Thanks. > > cheers, > > Rolf Turner > rolf at math.unb.caR can also create more generic image formats such as png, i just use these when I'm forced to insert graphics for presentations ?png
A student in one of my courses has asked me about getting R graphics output (under Linux) into a Word document. I.e. she wants to do her R thing under Linux, but then do her word processing using Word. Scanning around the r-help archives I encountered an inquiry about this topic --- eps into Word documents --- from Paul Johnson but found no replies to it. I tried contacting him but the email address in the archives appeared not to be valid. Does anyone know a satisfactory solution to the problem of including a graphic which exists in the form of a *.eps (encapsulated postscript) file into a Word document. If so, would you be willing to share it with me and my student? If so, please be gentle in your explanation. I am not myself (repeat ***NOT***) a user of Word! Thanks. cheers, Rolf Turner rolf at math.unb.ca
On Mon, 2005-10-03 at 16:31 -0300, Rolf Turner wrote:> A student in one of my courses has asked me about getting R graphics > output (under Linux) into a Word document. I.e. she wants to do her > R thing under Linux, but then do her word processing using Word. > > Scanning around the r-help archives I encountered an inquiry about > this topic --- eps into Word documents --- from Paul Johnson but > found no replies to it. I tried contacting him but the email address > in the archives appeared not to be valid. Does anyone know a > satisfactory solution to the problem of including a graphic which > exists in the form of a *.eps (encapsulated postscript) file into a > Word document. If so, would you be willing to share it with me and > my student? > > If so, please be gentle in your explanation. I am not myself (repeat > ***NOT***) a user of Word!Hehe... :-) Rolf, just use the guidance provided in ?postscript. In the details section it indicates: The postscript produced by R is EPS (_Encapsulated PostScript_) compatible, and can be included into other documents, e.g., into LaTeX, using '\includegraphics{<filename>}'. For use in this way you will probably want to set 'horizontal = FALSE, onefile FALSE, paper = "special"'. So use something like the following: postscript("RPlot.eps", height = 4, width = 4, horizontal = FALSE, onefile = FALSE, paper = "special") plot(1:5) dev.off() You can then import the .eps file into Word or most other such applications that can import encapsulated postscript files. The recent versions of Word will also automatically generate a bitmapped preview of the plot upon import. BTW, OO.org 2.0, which is in late beta testing now, also generates EPS preview images upon import. The key to doing this successfully is using the arguments to postscript() as defined above. I have never had a problem with this. More information is available from MS here: http://support.microsoft.com/?kbid=290362 HTH, Marc Schwartz
on 10/3/2005 3:31 PM Rolf Turner said the following:>[...] Does anyone know a >satisfactory solution to the problem of including a graphic which >exists in the form of a *.eps (encapsulated postscript) file into a >Word document. If so, would you be willing to share it with me and >my student? > > >Recent versions of Word import EPS quite well. I just tried it with Word 2003 (also known as Word 11), and the figure was imported properly. Word added a preview all by itself. To do this, I opened an Explorer (directory) window on the directory with the files, then dragged the EPS file to Word. I am certain it can also be done through the menu system. I then converted an EPS file's line endings to *ix format and repeated the above. It still worked fine. -- Michael Prager, Ph.D. Population Dynamics Team, NMFS SE Fisheries Science Center NOAA Center for Coastal Fisheries and Habitat Research Beaufort, North Carolina 28516 http://shrimp.ccfhrb.noaa.gov/~mprager/ Opinions expressed are personal, not official. No government endorsement of any product is made or implied.