if (FALSE) {
library(agridat)
data(gomez.splitsplit)
dat <- gomez.splitsplit
dat$nf <- factor(dat$nitro)
libs(desplot)
desplot(dat, nf ~ col*row,
# aspect unknown
out1=rep, col=management, num=gen, cex=1,
main="gomez.splitsplit")
desplot(dat, yield ~ col*row,
# aspect unknown
out1=rep, main="gomez.splitsplit")
libs(HH)
position(dat$nf) <- c(0,50,80,110,140)
interaction2wt(yield~rep+nf+management+gen, data=dat,
main="gomez.splitsplit",
x.between=0, y.between=0,
relation=list(x="free", y="same"),
rot=c(90,0), xlab="",
par.strip.text.input=list(cex=.7))
# AOV. Gomez page 144-153
m0 <- aov(yield~ nf * management * gen + Error(rep/nf/management),
data=dat)
summary(m0) # Similar to Gomez, p. 153.
}
Run the code above in your browser using DataLab