#data3: Kaps and Lamberson (2009)
#Description:
##The experiment compared three diets for pigs in a completely randomized design
data(data1)
# Kruskal-Wallis test
box.plot(data1, test=1)
#Description
#Complete randomized block design to determine the average daily gain of steers
data(data2)
box.plot(data2, test=2)
#More plot parameters
box.plot(data2, test=2, col=c(2,7,3), col.axis="red",las=1,
legend=FALSE, bg="cornsilk", sub="Treatments", cex=1.2);grid(10, lwd=1.5)
Run the code above in your browser using DataLab