Dear all, Could you please give me an idea of how to export graphs from R to a word processor? I normally use Microsoft Word for writing but when trying to put graphs from R on the documents the quality get very low. I have tried both, copy and paste into Word (bitmap and metafile), and save the graph (I have tried all different formats) and then import the file into the text document, but the quality in both case is too low. How can I keep the quality of my R graphs? I am currently using R 1.6.1. Many thanks, Jesus -- Jes?s Fern?ndez G?lvez Dpto. Ciencias de la Tierra y Qu?mica Ambiental Estaci?n Experimental del Zaid?n, CSIC c/ Prof. Albareda 1; 18008 GRANADA, Spain Tel: 958 181600 Fax: 958 129600
I suspect the problem is with Word, not R. Exporting as a metafile (or even cut-and-paste) and including in Word works well *provided* your printer is capable of high quality (e.g. a postscript printer). Avoid the bitmap options, and use wmf, postscript or pdf for inclusion in other documents. On Thu, 9 Jan 2003, [iso-8859-1] Jesús Fernández Gálvez wrote:> Could you please give me an idea of how to export graphs from R to a > word processor? I normally use Microsoft Word for writing but when > trying to put graphs from R on the documents the quality get very low. I > > have tried both, copy and paste into Word (bitmap and metafile), and > save the graph (I have tried all different formats) and then import the > file into the text document, but the quality in both case is too low. > How can I keep the quality of my R graphs? > I am currently using R 1.6.1.On Windows, evidently! -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
Jes?s Fern?ndez G?lvez wrote:> Dear all, > > Could you please give me an idea of how to export graphs from R to a > word processor? I normally use Microsoft Word for writing but when > trying to put graphs from R on the documents the quality get very low. I > > have tried both, copy and paste into Word (bitmap and metafile), and > save the graph (I have tried all different formats) and then import the > file into the text document, but the quality in both case is too low. > How can I keep the quality of my R graphs? > I am currently using R 1.6.1. > > Many thanks, > > JesusI have had consistent success in copying R graphics as a metafile (right mouse click over the plot window) and pasting into both Word and Power Point when under Windows XP. I use R 1.6.1 under both Windows and RH 8. The bitmap option of course tends to not resize well if you need to do this in your document, so the metafile format tends to be a better choice. When you say that the quality is low, are you referring to what you see on the screen or what you get from a printer as output? If the latter, you may need a better printer. I use an Okidata 7400n color LED, which does 1200 x 1200 and get great results when printing R graphics under both Windows and Linux configured as a PostScript device. Not sure if that helps, but I can vouch for getting high quality graphics from R. Regards, Marc Schwartz
I am sending the solution to my question in case someone has the same problem. Finally I manage to get good results with "metafile" but my error was that I did not choose the higher quality option for my printer. -- Jes?s Fern?ndez G?lvez Dpto. Ciencias de la Tierra y Qu?mica Ambiental Estaci?n Experimental del Zaid?n, CSIC c/ Prof. Albareda 1; 18008 GRANADA, Spain Tel: 958 181600 Fax: 958 129600