[R-SIG-Mac] Wiki or Development fo Mac-R.app-graphics-insert-to-Word?
Chabot Denis
chabotd at globetrotter.net
Tue Jan 30 18:50:47 CET 2007
Hi,
Le 07-01-29 à 16:28, r-sig-mac-request at stat.math.ethz.ch a écrit :
> Message: 3
> Date: Mon, 29 Jan 2007 11:50:47 -0800
> From: Don MacQueen <macq at llnl.gov>
> Subject: Re: [R-SIG-Mac] Wiki or Development fo Mac-R.app-graphics-
> insert-to-Word?
> To: "Martin Henry H. Stevens" <HStevens at muohio.edu>, R
> <r-sig-mac at stat.math.ethz.ch>
> Message-ID: <p06230905c1e400267aec@[128.115.153.6]>
> Content-Type: text/plain; charset="us-ascii" ; format="flowed"
>
> I'd suggest you try using R's png() driver.
> 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.
>
> -Don
This is probably one of the better solutions, but I usually keep
saving as pdf and then create the png from PreView or Acrobat.
The reason is this: most of my graphics are in pdf, so my margins,
font sizes (via cex) etc. are set for graphics that are well
proportioned in pdf files.
When I ask R to output png, I usually want to increase resolution to
compensate for the fact it will be raster instead of vector based
(i.e. have a bit of room to zoom without loosing quality). But every
time I change the png resolution, I have to readjust margins, font
sizes, etc. Frustrating when you have just made a complex graph
requiring a bit of fine tuning, but realise you should also keep a
png version for an Office product.
I wish the png driver worked differently, so that if you are happy
with the pdf or quartz graphics, you just call png with the same
settings and get the same plot. If you choose a high res, you get a
giant version of the graph, everything in enlarged in proportion,
text, plot symbols, etc included.
Denis
More information about the R-SIG-Mac
mailing list