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

stephen sefick ssefick at gmail.com
Tue Sep 9 00:38:25 CEST 2008

word 2004
post script  (plot created with postscript()) does not work but pdf
graphics work on the mac.  I suggest not copying and pasting because,
in my expreience, the output is not as good as pdf et al.

On Mon, Sep 8, 2008 at 6:19 PM, Frank E Harrell Jr
<f.harrell at vanderbilt.edu> wrote:
> 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
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

Stephen Sefick
Research Scientist
Southeastern Natural Sciences Academy

Let's not spend our time and resources thinking about things that are
so little or so large that all they really do for us is puff us up and
make us feel like gods. We are mammals, and have not exhausted the
annoying little problems of being mammals.

	-K. Mullis

More information about the R-help mailing list