Skip to content

how to present a table in powerpoint?

6 messages · jonathan_li@agilent.com, Ko-Kang Kevin Wang, Marc Schwartz +2 more

#
Hi,

I have a nicely printed table of results generated by R's
where myresult is a "data frame".
 
I am trying to put this table into a powerpoint slide for presentation without re-typing and re-formating, i.e.,
present it as it is in the R window. This saves time when there are a lot of tables to be presented.

I tried
resulting text file looks nice, but how can I insert it into powerpoint without losing its formatting? When I think more carefully about it, it seems to me that we need a way to convert this text presentation into graphical presentation such as postscript, then it would be easy to paste it into powerpoint without losing its formatting. 

I suspect that this is a problem many other may also face sometimes. After doing searching in R-help archive with keywords like "powerpoint", "presentation", I came up with many entries about presenting graphs in powerpoint, but not one about presenting tables of numbers.

Your help is highly appreciated.
Jonathan
#
Have you tried to change the fonts of the table (in PowerPoint) to Courier 
or Courier New?

Kevin
On Mon, 28 Apr 2003 jonathan_li at agilent.com wrote:

            

  
    
#
This is less an R issue and more a fixed width font versus variable
width font issue.

The default font in PP is usually a variable width font, such as
Arial.  It makes for easier and more natural reading. As a result, an
'I' take up less width than a "W" and therefore the text cannot line
up properly from one line to another.

R's console uses a fixed width font by default so that columns of
characters (including spaces) can align vertically and give you the
nicely aligned columns of numbers, etc.

You will need to change the font in PP to a fixed width font like
Courier (or Courier New, which is the scalable TrueType Font version)
to be able to have your columns align vertically, as they do in R's
console.  Highlight the text you paste into PP and change the font to
Courier New and to a size that fits your slide appropriately.

If this is something that you do frequently, you can create a slide
template in PP that has Courier New as the default font, specifically
for use in this situation.

HTH,

Marc Schwartz
#
I'm surprised that no one has yet mentioned "Sweave".
I've never used it, but it seems to solve exactly the
general problem of R-to-postscript formatting that
Jonathan Li sees a use for.  However, it works via
TeX/LaTeX rather than by commercial software.

http://www.ci.tuwien.ac.at/~leisch/Sweave/Sweave-manual-20021007.pdf

-  tom blackwell  -  u michigan medical school  -  ann arbor  -
On Mon, 28 Apr 2003, Jonathan Li wrote:

            
#
On Tue, 29 Apr 2003, Thomas W Blackwell wrote:

            
When I do my presentations I always produce PDF plots from R, insert into 
a LaTeX document which uses pdfscreen package, convert to pdf via 
pdflatex. 

I've heard of Sweave but am not aware its abilities.  Has anyone used it?  
What is it like?

(Sorry if this is a bit off-topic...)
#
On Tuesday 29 April 2003 21:06, Ko-Kang Kevin Wang wrote:

            
Yes, a lot of people already have used it and for a lot of us mixing 
R/S code and LaTeX documentation was exactly what we always wanted.
 
There have been several discussions about Sweave on the list, so you 
could browse the archives to look for further opinions. And look on 
Fritz' web page (already indicated above) for documentation of the 
features of Sweave.

What hasn't been mentioned explicitely on R-help (as it is very 
obvious, I suppose) is that you can not only generate reproducible 
reports using Sweave but also pdf slides for presentations. This is 
very convenient if you need to change some of your graphics (greater 
line width, different colors, etc.) to be properly seen on the 
projector at some conference, say. You just change the R code in the 
Sweave file and recompile.

Best,
Z