[R] graphics edge in win.metafile?

LL Lbrannma at yahoo.com
Sat May 26 20:10:58 CEST 2007


Thanks Charles. I just discovered that I get much better behavior if I write 
the graph to a normal R graphics window, right click and select copy as 
metafile, and paste the result normally into powerpoint.

----- Original Message ----- 
From: "Charles Annis, P.E." <Charles.Annis at StatisticalEngineering.com>
To: "'LL'" <Lbrannma at yahoo.com>; <r-help at stat.math.ethz.ch>
Sent: Saturday, May 26, 2007 7:46 PM
Subject: RE: [R] graphics edge in win.metafile?


> Try using Paste, Special in WORD or PowerPoint.  The graphic will be
> slightly smaller too but I find the size is just right.
>
>
> What works better for me, but does require some forethought, is something
> like this:
>
> graphics.off()
> windows(width = 5.8, height = 5.8, pointsize = 12)
> par(mar = c(4.5, 4.5, 4, 0.5) + 0.1)#  <-- sized to fit your graphic.
> ###        Customizing par() may solve your cut & paste problem, too.
> ###
> ### graphic generating logic goes here.
> ###
> savePlot("graphic name", type = "wmf")
>
> The rather than cut & paste, I use WORD or PowerPoint's "insert" to point 
> to
> the new graphic.
>
>
>
>
> Charles Annis, P.E.
>
> Charles.Annis at StatisticalEngineering.com
> phone: 561-352-9699
> eFax:  614-455-3265
> http://www.StatisticalEngineering.com
>
>
> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch
> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of LL
> Sent: Saturday, May 26, 2007 1:14 PM
> To: LL; r-help at stat.math.ethz.ch
> Subject: [R] graphics edge in win.metafile?
>
> Hi... I copy a plot to the clipboard via win.metafile and then paste the
> clipboard into a powerpoint show. The problem is that there is 
> considerable
> white space between the edges of the plot and the figure pasted into
> powerpoint. I've tried many par settings to get less white space between 
> the
> plot sides and the  bounding box.. but haven't succeeded.
>
> win.metafile("", height=3, width=3)
> plot(1:10)
> dev.off()
>
> Thanks,
> Lance
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at stat.math.ethz.ch 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.
>
>



More information about the R-help mailing list