Re: [R] graphics edge in win.metafile?

From: LL <Lbrannma_at_yahoo.com>
Date: Sat, 26 May 2007 20:10:58 +0200

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.

> 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.
>
>



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. Received on Sat 26 May 2007 - 18:15:02 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 26 May 2007 - 20:34:17 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.