View source: R/prettyAOVtable.R
prettyAOVtable | R Documentation |
Creates a nicely formated tableGrob using gridExtra
and broom
.
prettyAOVtable(aov.object = NULL, cex = 1)
aov.object |
An object of class |
cex |
Numeric. The relative size of text in the table. The size of the cells and table automatically adjust for the size of the text. |
A gtable
/ grob
object which can be plotted. See the examples.
Bryan A. Hanson, DePauw University. hanson@depauw.edu
https://github.com/bryanhanson/HandyStuff
require("broom") require("grid") require("gridExtra") require("gtable") npk1.aov <- aov(yield ~ block + N*P*K, npk) # from ?aov grid.newpage() grid.draw(prettyAOVtable(npk1.aov)) npk2.aov <- aov(yield ~ block*K, npk) grid.newpage() grid.draw(prettyAOVtable(npk2.aov))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.