Skip to content

Instantly share code, notes, and snippets.

@phgrosjean
Last active November 7, 2016 13:24
Show Gist options
  • Select an option

  • Save phgrosjean/5ab062c407ae5d14c2d693cf26760ae9 to your computer and use it in GitHub Desktop.

Select an option

Save phgrosjean/5ab062c407ae5d14c2d693cf26760ae9 to your computer and use it in GitHub Desktop.
ANOVA using gov()
data(ToothGrowth)
TG.aov <- aov(len ~ dose * supp, data = ToothGrowth)
anova(TG.aov)
par(mfrow = c(2,2))
plot(TG.aov)
par(mfrow = c(1,1))
coplot(len ~ dose | supp, data = ToothGrowth, panel = panel.smooth)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment