# Show how to customize any feature. In this case, make the strips bigger.
d1 <- desplot(yield ~ col*row|county, besag.met, main="besag.met",
out1=rep, out2=block, out2.gpar=gpar(col="white"), strip.cex=3)
d1 <- update(d1, par.settings = list(layout.heights=list(strip=2)))
print(d1)
# Or: d1$par.settings = list(layout.heights=list(strip=2))
# Show experiment layout
# Note: all "Buckskin" plots are near left side
desplot(yield~x*y, stroup.nin, out1="rep", num=gen, cex=1, main="stroup.nin")
desplot(yield ~ x+y, yates.oats, out1=block, out2=gen)
desplot(gen ~ x+y, yates.oats, col=block, num=nitro, cex=1,
out1=block)
desplot(block ~ x+y, yates.oats, col=nitro, text=gen, cex=1, out1=block)
# Example from Ryder.
gnut <- ryder.groundnut
m1 <- lm(dry~block+gen, gnut)
gnut$res <- resid(m1)
# Note largest positive/negative residuals are adjacent
desplot(res ~ col + row, gnut, text=gen, cex=1)Run the code above in your browser using DataLab