Skip to content
Prev 44726 / 398526 Next

R: Including R plots in a Microsoft Word document

> Also, has anyone tried creating a Word document using
    > OpenOffice with figures imported from R?

I've tried that.  It works fine with openoffice, but not with
word.  For example, create a postscript file with R like this:
Then add a preview with epstool -tg --device tiffg3 tmp.eps tmp-tiff.eps

If I insert this figure into an openoffice text document, I see
the bitmap preview and it prints nicely on a postscript printer.

If I save the openoffice document as "Microsoft Word 97/2000/XP",
the figure looks the same on the screen in word as openoffice,
but when I print with word, I just get the bitmap preview, not
the nice postscript.  If I print the doc file with openoffice, it
works fine too. 

Note that this is all for OpenOffice 1.0.3 and Word 2000 on
windows 2000 pro.  I get similar results for openoffice 1.1 on
windows and various linuxes too.

Mike