Hi, Is there away to print a short table out along side with a plot? I'm thinking about doing a par(mfrow = c(1,2)) Then, the plot is on one side, summary result on the other. Is there any quick way to print out a data.frame in table format? Thanks -- Regards, Anh Tran [[alternative HTML version deleted]]
Hi Anh, Take a look at http://finzi.psych.upenn.edu/R/Rhelp02a/archive/128041.html HTH, Jorge On Tue, May 6, 2008 at 3:46 PM, Anh Tran <popophobia@gmail.com> wrote:> Hi, > Is there away to print a short table out along side with a plot? > I'm thinking about doing a > > par(mfrow = c(1,2)) > > Then, the plot is on one side, summary result on the other. > Is there any quick way to print out a data.frame in table format? Thanks > > -- > Regards, > Anh Tran > > [[alternative HTML version deleted]] > > ______________________________________________ > 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.[[alternative HTML version deleted]]
Look at the addtable2plot function in the plotrix package. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.snow at imail.org (801) 408-8111> -----Original Message----- > From: r-help-bounces at r-project.org > [mailto:r-help-bounces at r-project.org] On Behalf Of Anh Tran > Sent: Tuesday, May 06, 2008 1:47 PM > To: R-help at r-project.org > Subject: [R] Print table data on to a plot > > Hi, > Is there away to print a short table out along side with a plot? > I'm thinking about doing a > > par(mfrow = c(1,2)) > > Then, the plot is on one side, summary result on the other. > Is there any quick way to print out a data.frame in table > format? Thanks > > -- > Regards, > Anh Tran > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at 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. >