An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-mac/attachments/20100426/20170445/attachment.pl>
R graphs question
6 messages · Wang, Fei, Adam D. I. Kramer, Michael Lawrence +3 more
See the graph in R, hit command-C to copy, go into powerpoint, hit command-V to paste? I don't think PowerPoint has any mass-import feature. --Adam
On Mon, 26 Apr 2010, Wang, Fei wrote:
Hey all, I am a newbie for R software. Recently I met a problem when I'm attempting to export R graphs to PowerPoint directly. Since we generate hundreds of graphs and want to export them to PPT at one time, is there any good solution to this? Thank you in advance for your help! Best, Fei [[alternative HTML version deleted]]
_______________________________________________ R-SIG-Mac mailing list R-SIG-Mac at stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Not sure about powerpoint, but if it's anything like keynote you should be able to save your graphs as pdfs then simply drag them into the thumbnail view of the slideshow to have each added as its own slide.
On Mon, Apr 26, 2010 at 7:57 PM, Wang, Fei <fwang at phsa.ca> wrote:
Hey all, I am a newbie for R software. Recently I met a problem when I'm attempting to export R graphs to PowerPoint directly. Since we generate hundreds of graphs and want to export them to PPT at one time, is there any good solution to this? Thank you in advance for your help! Best, Fei ? ? ? ?[[alternative HTML version deleted]]
_______________________________________________ R-SIG-Mac mailing list R-SIG-Mac at stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Mike Lawrence Graduate Student Department of Psychology Dalhousie University Looking to arrange a meeting? Check my public calendar: http://tr.im/mikes_public_calendar ~ Certainty is folly... I think. ~
Fei,
On 27/04/2010, at 6:57 , Wang, Fei wrote:
I am a newbie for R software. Recently I met a problem when I'm attempting to export R graphs to PowerPoint directly. Since we generate hundreds of graphs and want to export them to PPT at one time, is there any good solution to this?
png(height=768, width=1024) may be your friend here, as there are sometimes issues with pdf's inserted into Microsoft Powerpoint for Mac and then viewed in Microsoft Powerpoint for Windows, due to windows not handling the embedded pdf well or something. Similarly, I have had problems before with transparancy in Windows. This will save multiple plots in the form Rplotxxx.png, or if you are looping then change the name in your loop and put it into the png call. dev.off() is the command you need to close the png device and save the plot. cheers Ben
2 days later
Hi,
On Apr 26, 2010, at 6:57 PM, Wang, Fei wrote:
I am a newbie for R software. Recently I met a problem when I'm attempting to export R graphs to PowerPoint directly. Since we generate hundreds of graphs and want to export them to PPT at one time, is there any good solution to this?
Depends on how motivated you are. Here's one solution. It will take some effort to get going and requires a few programming skills, but once set up you can repeat the process painlessly. First, you need to use Apple's Keynote. The Keynote file format is a regular zipped directory containing an XML file and the various media (e.g. pdfs, pngs). The XML format is documented here: http://developer.apple.com/appleapplications/keynote-apxl.html Given that and some trial and error, one can write a python script (or similar) to take a folder of graphs that you output from R and convert them into a Keynote presentation. If you don't want to use Keynote as your final format, you can export the file into a huge PDF or a PowerPoint file. And if you get something working and are willing to share, I'm sure several people on the list would be interested in seeing a working script! How you intend to keep your audience awake for a presentation of hundreds of graphs is another problem entirely. :) Cheers, Demitri _________________________________________ Demitri Muna Center for Cosmology and Particle Physics New York University
Hi, If you're willing to drop powerpoint for a more versatile alternative, the most obvious route might be Sweave + the beamer package.
On 29 April 2010 23:17, <thatsanicehatyouhave at mac.com> wrote:
Hi, On Apr 26, 2010, at 6:57 PM, Wang, Fei wrote:
I am a newbie for R software. Recently I met a problem when I'm attempting to export R graphs to PowerPoint directly. Since we generate hundreds of graphs and want to export them to PPT at one time, is there any good solution to this?
Depends on how motivated you are. Here's one solution. It will take some effort to get going and requires a few programming skills, but once set up you can repeat the process painlessly. First, you need to use Apple's Keynote. The Keynote file format is a regular zipped directory containing an XML file and the various media (e.g. pdfs, pngs). The XML format is documented here: http://developer.apple.com/appleapplications/keynote-apxl.html Given that and some trial and error, one can write a python script (or similar) to take a folder of graphs that you output from R and convert them into a Keynote presentation. If you don't want to use Keynote as your final format, you can export the file into a huge PDF or a PowerPoint file. And if you get something working and are willing to share, I'm sure several people on the list would be interested in seeing a working script! How you intend to keep your audience awake for a presentation of hundreds of graphs is another problem entirely. :)
Perhaps inserting a Audience.sleep(1) every now and then during page transitions? baptiste