if (FALSE) {
require(agridat)
data(forster.wheat.uniformity)
dat <- forster.wheat.uniformity
mean(dat$yield)
# 135.97 # Forster says 136.5
sd(dat$yield)
# 10.68 # Forster says 10.9
# Compare to Forster table 3. Slight differences.
table( cut(dat$yield,
breaks = c(106,111,116,121,126,131,136,141,
146,151,156,161,166)+.5) )
# Forster has 5 plots in the 157-161 bin, but we show 6.
# I filtered the data for this bin and verified our data
# matches the layout in the paper.
filter(dat, yield>156.5, yield<161.5)
libs(desplot)
desplot(dat, yield ~ col*row,
flip=TRUE, aspect=(16*20)/(10*30), # true aspect
main="forster.wheat.uniformity")
}
Run the code above in your browser using DataLab