[R] Followup: copy-paste graphics from R to Word on Mac OS X

Ulises Mora Alvarez umalvarez at fata.unam.mx
Sat Mar 8 02:08:45 CET 2003


Eric:

I'm working with R in an IBook with Jaguar 10.2.4. When it comes to 
ghapics manipulation the best thing for me (and I mean a real good result)  
was to save my graphics either as bitmaps or as png's files with the 
"bitmap" or the "png" devices, respectively.

Example:

x <- 1:10
y <- 11:20
plot(x,y)
dev.print(bitmap, file = "dummy.bmp", res = 600)

I should tell you that I've compiled R using fink. I've to download a 
bunch of additional software (X11, ghoscript, etc., always using fink). 
But the results are just great.

Have a look at the list files, and at the "Devices" help in the R 
software. If you need additional help with graphics or fink please let me 
know. 

Regards.



On Thu, 6 Mar 2003, Eric Fruits wrote:

> After trying numerous options, I'm just about at my wits end.
> 
> The most frequent suggestion was to export to a postscript or PDF file 
> and import that into Word.
> 
> However, no matter what I did or how I did it, the results were 
> extraordinarily ugly and somewhat time-consuming.
> 
> What I've tried so far:
> 
> 1.  Copy and paste from the R graphics output window into Word (in Mac 
> OS X), this is the worst result.
> 
> 2.  Use pdf() to create a pdf file, then import (Insert | Picture | 
>  From File ...) into Word.  This generated the second-worst results.  
> Note, that if I print the .pdf file without importing, the results are 
> OK.
> 
> 3.  Use pdf() to create a pdf file, use MacGSView to convert to .tiff, 
> then import into Word.  This provided the third-worst results.  Note 
> that the .tiff file is jaggy too.
> 
> 4.  Use pdf() to create a pdf file, use the full-blown version of 
> Acrobat to convert to .tiff, then import into Word.  This provided the 
> best, but still ugly results.  Note that the .tiff file is jaggy too.
> 
> It is conceivable that this is a Mac OS X problem, but I'm not 
> convinced considering how well it handles other graphics.
> 
> Any suggestions are appreciated.
> 
> Begin forwarded message:
> 
> > From: Eric Fruits <fruits at portland.econw.com>
> > Date: Fri Feb 21, 2003  10:32:52  AM US/Pacific
> > To: r-help at lists.R-project.org
> > Subject: Copy-paste graphics from R to Word on Mac OS X
> >
> > Greetings:
> >
> > 	I'm (very) new  to R.
> >
> > 	One of the features of R that I really like is R's ability to quickly 
> > generate very good looking graphics.  However, I've noticed that when 
> > I attempt to copy and paste the graphs from the R graphics output 
> > window into Word (in Mac OS X), the resulting picture is very jaggy.
> >
> > 	I'm aware of the various options such as dev2bitmap, but I'd really 
> > like to be able to do a quick copy and paste without switching among 
> > various applications or creating extraneous files.
> >
> > 	Thanks.
> >
> > -- 
> > Eric Fruits, Ph.D.
> > Senior Economist & Project Manager
> > ECONorthwest - Portland
> >
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> 

-- 
Ulises M. Alvarez
LAB. DE ONDAS DE CHOQUE
FISICA APLICADA Y TECNOLOGIA AVANZADA
UNAM
umalvarez at fata.unam.mx



More information about the R-help mailing list