Learn R Programming

Stat2Data (version 2.0.1)

TukeyNonaddPlot: Tukey Nonadditivity Plot for Two-way ANOVA

Description

This function produces a Tukey nonadditivity plot for a two-way ANOVA model.

Usage

TukeyNonaddPlot(
  formula,
  data,
  out = "n",
  main = "Tukey Nonadditivity Plot",
  ylab = "Residuals"
)

Value

Depends on the option set with out.

Arguments

formula

A formula for a two-way ANOVA in the form Response=FactorA+FactorB (or FactorA*FactorB)

data

A dataframe

out

Control what is returned. Default is "n"=nothing. Other options are "comp" for the comparisons, "line" for the equation of the line, and "resid" for the cell residuals.

main

Add a title, default is "Tukey Nonadditivity Plot"

ylab

Label vertical axis, default is "Residuals"

Details

More details need to be written

Examples

Run this code
data(Dinosaurs)
TukeyNonaddPlot(Iridium~Source*factor(Depth),data=Dinosaurs)

Run the code above in your browser using DataLab