Hi, I have a nicely printed table of results generated by R's> print(myresult)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> sink("myresult.txt") > print(myresult) > sink()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:> Date: Mon, 28 Apr 2003 13:51:17 -0700 > From: jonathan_li at agilent.com > To: r-help at stat.math.ethz.ch > Cc: jonathan_li at agilent.com > Subject: [R] how to present a table in powerpoint? > > Hi, > > I have a nicely printed table of results generated by R's > > print(myresult) > 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 > > sink("myresult.txt") > > print(myresult) > > sink() > > 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 > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help >-- Cheers, Kevin ------------------------------------------------------------------------------ /* Time is the greatest teacher, unfortunately it kills its students */ -- Ko-Kang Kevin Wang Master of Science (MSc) Student SLC Tutor and Lab Demonstrator Department of Statistics University of Auckland New Zealand Homepage: http://www.stat.auckland.ac.nz/~kwan022 Ph: 373-7599 x88475 (City) x88480 (Tamaki)
>-----Original Message----- >From: r-help-bounces at stat.math.ethz.ch >[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of >jonathan_li at agilent.com >Sent: Monday, April 28, 2003 3:51 PM >To: r-help at stat.math.ethz.ch >Cc: jonathan_li at agilent.com >Subject: [R] how to present a table in powerpoint? > > >Hi, > >I have a nicely printed table of results generated by R's >> print(myresult) >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 >> sink("myresult.txt") >> print(myresult) >> sink() > >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. >JonathanThis 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
Bashir Saghir (Aztek Global)
2003-Apr-29 09:56 UTC
[R] how to present a table in powerpoint?
Dear Jonathon, You could include the contents of "myresult.txt" in a slide using a Courier font. Saghir> -----Original Message----- > From: jonathan_li@agilent.com [SMTP:jonathan_li@agilent.com] > Sent: Monday, 28 April, 2003 10:51 PM > To: r-help@stat.math.ethz.ch > Cc: jonathan_li@agilent.com > Subject: [R] how to present a table in powerpoint? > > Hi, > > I have a nicely printed table of results generated by R's > > print(myresult) > 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 > > sink("myresult.txt") > > print(myresult) > > sink() > > 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 > > ______________________________________________ > R-help@stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help > >--------------------------------------------------------- Legal Notice: This electronic mail and its attachments are inten... {{dropped}}
On Tue, 29 Apr 2003, Thomas W Blackwell wrote:> 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 -The URL has changed - it's now http://www.ci.tuwien.ac.at/~leisch/Sweave/Sweave-manual-20030423.pdf Luke