MyCalendar
2017-Mar-26 17:16 UTC
[R] Presentation Quality Tables, e.g., Ten rows, Five columns, with nice headers
Hi R'ers: After browsing for a good package for quality table construction, I found nothing. Any advice? Thanks Bruce -------
Ista Zahn
2017-Mar-26 18:29 UTC
[R] Presentation Quality Tables, e.g., Ten rows, Five columns, with nice headers
You're going to have to be more specific. What output format? What packages did you find and in what ways are they unsatisfactory? Best, Ista On Mar 26, 2017 2:22 PM, "MyCalendar" <rentar18 at gmail.com> wrote: Hi R'ers: After browsing for a good package for quality table construction, I found nothing. Any advice? Thanks Bruce ------- ______________________________________________ R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see 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]]
Duncan Murdoch
2017-Mar-26 18:44 UTC
[R] Presentation Quality Tables, e.g., Ten rows, Five columns, with nice headers
On 26/03/2017 1:16 PM, MyCalendar wrote:> Hi R'ers: > After browsing for a good package for quality table construction, I found nothing. > Any advice?Try the task view on Reproducible research: <https://cran.r-project.org/web/views/ReproducibleResearch.html>. Duncan Murdoch
Richard M. Heiberger
2017-Mar-26 18:45 UTC
[R] Presentation Quality Tables, e.g., Ten rows, Five columns, with nice headers
I will assume that a "quality table" is a LaTeX tabular environment, possibly with some nested row or column structures. For that I recommend the latex function in the Hmisc package. The examples in ?latex are simple. Quite complex structures, for example, with nested sets of labled rows and columns, can be built by using some of the many optional arguments. The resulting .tex file can be input into your larger .tex file. The default settings use the system latex command to build and immediately display a dvi file of the table (or other R object). For Mac or WIndows I use pdflatex to build and display a pdf file. This needs options(latexcmd='pdflatex');options(dviExtension='pdf');options(xdvicmd='open') Some linux versions will need a different value for the xdvicmd option. See ?latex for discussion of options. You can embed R graphics into your table using the microplot package. See the examples, vignette, and demos for details. Microplots can be use to place graphics in html files and other file types. Rich On Sun, Mar 26, 2017 at 10:16 AM, MyCalendar <rentar18 at gmail.com> wrote:> Hi R'ers: > After browsing for a good package for quality table construction, I found nothing. > Any advice? > Thanks > Bruce > > ------- > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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.
Bert Gunter
2017-Mar-26 19:27 UTC
[R] Presentation Quality Tables, e.g., Ten rows, Five columns, with nice headers
Look again! (e.g. google "make tables in R") (Note that "quality table construction" is subjective and undefined, so it's up to you to either define them sufficiently for others or do your own research to see if what's out there meets your undefined criteria). Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Sun, Mar 26, 2017 at 10:16 AM, MyCalendar <rentar18 at gmail.com> wrote:> Hi R'ers: > After browsing for a good package for quality table construction, I found nothing. > Any advice? > Thanks > Bruce > > ------- > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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.
Jim Lemon
2017-Mar-26 21:28 UTC
[R] Presentation Quality Tables, e.g., Ten rows, Five columns, with nice headers
Hi Bruce, Well, a start might be: bdf<-data.frame(Pre=sample(10:20,10), During=sample(8:18,10), EOT=sample(5:15,10),fu3mo=sample(7:17,10), fu6mo=sample(10:20,10)) rownames(bdf)<-paste("S",1:10,sep="") plot.new() library(plotrix) addtable2plot(0.15,0.2,bdf,display.rownames=TRUE, bty="o",vlines=TRUE,hlines=TRUE,title="My table") Jim On Mon, Mar 27, 2017 at 4:16 AM, MyCalendar <rentar18 at gmail.com> wrote:> Hi R'ers: > After browsing for a good package for quality table construction, I found nothing. > Any advice? > Thanks > Bruce > > ------- > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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.
Robert Baer
2017-Mar-26 22:54 UTC
[R] Presentation Quality Tables, e.g., Ten rows, Five columns, with nice headers
Quite nice Jim. A little par() magic, some well thought plot window dimensions, and good to go. I wasn't looking, but now that I've seen it, I can imagine uses. Bruce - see also https://cran.r-project.org/web/packages/xtable/vignettes/xtableGallery.pdf On 3/26/2017 4:28 PM, Jim Lemon wrote:> Hi Bruce, > Well, a start might be: > > bdf<-data.frame(Pre=sample(10:20,10), > During=sample(8:18,10), > EOT=sample(5:15,10),fu3mo=sample(7:17,10), > fu6mo=sample(10:20,10)) > rownames(bdf)<-paste("S",1:10,sep="") > plot.new() > library(plotrix) > addtable2plot(0.15,0.2,bdf,display.rownames=TRUE, > bty="o",vlines=TRUE,hlines=TRUE,title="My table") > > Jim > > > On Mon, Mar 27, 2017 at 4:16 AM, MyCalendar <rentar18 at gmail.com> wrote: >> Hi R'ers: >> After browsing for a good package for quality table construction, I found nothing. >> Any advice? >> Thanks >> Bruce >> >> ------- >> ______________________________________________ >> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see >> 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. > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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.
John Kane
2017-Mar-27 11:04 UTC
[R] Presentation Quality Tables, e.g., Ten rows, Five columns, with nice headers
If you are working in LaTeX I'd suggest having a look at the R package? xtable with the? LaTeX package booktabs.? On Sunday, March 26, 2017 2:23 PM, MyCalendar <rentar18 at gmail.com> wrote: Hi R'ers: After browsing for a good package for quality table construction, I found nothing. Any advice? Thanks Bruce ------- ______________________________________________ R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see 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]]