RE: [Rcom-l] Rcom and access to MsWord

2007-12-12 Thread Markus Gesmann
Dear Rik, A similar approach for PowerPoint was discussed earlier on this list. Amending that solution for Word gives me: # create a graph and save it somewhere library(lattice) Depth <- equal.count(quakes$depth, number=8, overlap=.1) P <- xyplot(lat ~ long | Depth, data = quakes) myfile="c:\\Tem

RE: [Rcom-l] Example exporting R graph to Powerpoint

2007-11-19 Thread Markus Gesmann
Dear Wayne, Wouldn't it be sufficient to know how to insert a picture file into PowerPoint via rcom? The following VBA code does that: ' VBA PowerPoint Sub InsertGraphicOnSlide() Dim ppApp As PowerPoint.Application Dim ppPres As PowerPoint.Presentation Dim ppShape As PowerPoint.Shape