prettyAOVtable: Create a nicely formated analysis of variance table as a grob

View source: R/prettyAOVtable.R

prettyAOVtableR Documentation

Create a nicely formated analysis of variance table as a grob

Description

Creates a nicely formated tableGrob using gridExtra and broom.

Usage

prettyAOVtable(aov.object = NULL, cex = 1)

Arguments

aov.object

An object of class aov.

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.

Value

A gtable / grob object which can be plotted. See the examples.

Author(s)

Bryan A. Hanson, DePauw University. hanson@depauw.edu

References

https://github.com/bryanhanson/HandyStuff

Examples


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))


bryanhanson/HandyStuff documentation built on July 22, 2022, 6:18 a.m.