Try dev.new() after each graph is generated.

Example code from my setup (adapted a bit to fit your situation):

Alternate Method 1: Generate images and insert into PPT

png(file = "chart1.png", width=800, height=800)
#do something pretty
dev.off()


Alternate Method 2: Generate images with new windows
dev.new()
#do something pretty


Check out the library R2PPT to answer your question about interaction with PPT.

Also, don't know if you're using the new Offce 2007, the default fonts with Calibri, etc. will be different (R generates them in the default font Arial). You can set it so that you match Office2K7 (or any other font of your choice) for consistency with the graphs generated in R and the rest of your presentation by doing the following:

windowsFonts(calibri = windowsFont("Calibri"))
windowsFonts(consolas = windowsFont("Consolas"))
dev.new()
par(family="calibri")  #Office 2K7 default font
#do something pretty

HTH,
Cedrick


Data Analytics Corp. wrote:
Hi,

I wrote a simple master function, run(), that has inside six qplot functions. The goal is to type run() and have all six graphs appear as separate windows so that I can copy them into PowerPoint for a client. When I type run(), only the last graph appears, the first five apparently being overwritten. How do I get all six in separate windows, ready for copying?

By the way, is the a way to create a PowerPoint deck directly in R the way you can in S-Plus?

Thanks,

Walt




______________________________________________
R-help@r-project.org 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.

Reply via email to