[R-SIG-Mac] Wiki or Development for Mac-R.app-graphics-insert-to-Word?
simon.urbanek at r-project.org
Mon Jan 29 21:47:09 CET 2007
On Jan 29, 2007, at 2:50 PM, Don MacQueen wrote:
> I'd suggest you try using R's png() driver.
I'd discourage that one a Mac as there is not really a need for that
- Quartz produces PNG directly and it's WYSIWYG unlike the png()
driver and Quartz has much better rendering.
To get back on the topic: To be honest I don't really see a problem
here - Word can handle PDF very easily, just drop a PDF file in a
Word document - it works just fine (to make sure I'm talking about
Office 2004 here).
The fact that it does so in Microsoft-ish way, that is by converting
it to a bitmap, is a technicality and given the overall quality of
Word output it is neither surprising nor will a regular Word user
notice this at all.
R is open source, so if someone implements a device that generates
DOC or WMF files, uses some API to talk to Word or anything similar,
they are free to contribute it to R or the R.app GUI.
> I am satisfied with how graphics imported into Word or PowerPoint
> look if save using png().
> Note that Adobe Illustrator for Mac has a "Save for Microsoft Office"
> option, and it saves in png format.
> At 1:42 PM -0500 1/29/07, Martin Henry H. Stevens wrote:
>> Hi Folks,
>> While I do not use Microsoft Word for my own work, I
>> (i) I teach R to people who use Word and PowerPoint, and
>> (ii) many people use Word around here would like to use R, but are
>> frustrated about getting graphics into Word.
>> My most recent response to a colleague, and my preferred solution for
>> others on a Mac was:
>> 1. Mac OSX uses PDF format for vector-graphics format, and R can make
>> PDFs beautifully -- try opening them in Preview or Acrobat Reader.
>> Microsoft Word, however, cannot handle PDF graphics, uses EMF/WMF
>> format for vector graphics. On PC's, R can create EMF/WMF format, but
>> it does not do so on Macs.
>> 2. On Macs, the best solution I have found for putting images into
>> PowerPoint and Word is to save R images as PDFs, open them in
>> GraphicConverter (a utility that comes with a Mac), then save as JPEG
>> format (with 100% resolution) and insert that into a Word document.
>> That will look very good. I seem to remember that Powerpoint is not
>> as limited.
>> 3. Note that if you make a Word document (like a manuscript) that
>> contains EMF/WMF graphics, Word on the Mac cannot read images in the
>> Word file made on the PC.
>> 4. The best success I had came when I stopped using Word, but I
>> realize that that is NOT for everyone.
>> I found a couple relevant threads (e.g. http://finzi.psych.upenn.edu/
>> R/Rhelp02a/archive/34950.html), but I was wondering what else might
>> be going on.
>> Is a move being made to help folks who are wedded to Word? Such a
>> move would be useful, I think.
>> Dr. Hank Stevens, Assistant Professor
>> 338 Pearson Hall
>> Botany Department
>> Miami University
>> Oxford, OH 45056
>> Office: (513) 529-4206
>> Lab: (513) 529-4262
>> FAX: (513) 529-4243
>> "E Pluribus Unum"
>> [[alternative HTML version deleted]]
>> R-SIG-Mac mailing list
>> R-SIG-Mac at stat.math.ethz.ch
> Don MacQueen
> Environmental Protection Department
> Lawrence Livermore National Laboratory
> Livermore, CA, USA
> R-SIG-Mac mailing list
> R-SIG-Mac at stat.math.ethz.ch
More information about the R-SIG-Mac