[R] ON MAC, how to copy a plot on to Word document?

Frank E Harrell Jr f.harrell at vanderbilt.edu
Tue Sep 9 00:19:27 CEST 2008


Word in Office 2003 (and I assume Office 2007) can insert encapsulated 
postscript with no problems on Windows, and display the graphic fine. 
Does this not work with Mac?  Doesn't dragging a file into Word lose the 
full resolution of postscript?

Frank


Adam D. I. Kramer wrote:
> For what it's worth, copy/paste between R and Word 2008 works perfectly. It
> doesn't work at all for Word 2004...so that's at least ONE improvement (the
> only one I've seen) in versions of Word.
> 
> --Adam
> 
> On Sun, 7 Sep 2008, Stefan Evert wrote:
> 
>>
>> On 7 Sep 2008, at 16:57, John Kane wrote:
>>
>>> I think you need to save the plot and import it into Word.  AFAIK you 
>>> can only copy and paste a plot in Windows.
>>
>> In the R.app GUI, you can click the plot window and then select "Copy" 
>> from the "Edit" menu (or press Command-C). You can now past the plot 
>> into most Mac applications (e.g. Apple's own iWork suit), but it 
>> doesn't work in Word 2004 -- so it's really a problem with Word.
>>
>>> Have a look at ?png  (There are other formats available)
>>
>> Or, much better, a PDF file by selecting "Save As ..." from the "File" 
>> menu (Shift-Command-S). You should then be able to drag and drop the 
>> PDF file into Word.
>>
>> HTH,
>> Stefan
>>
-- 
Frank E Harrell Jr   Professor and Chair           School of Medicine
                      Department of Biostatistics   Vanderbilt University



More information about the R-help mailing list