Description Usage Format Details Source Examples
Multi-environment trial of corn laid out in incomplete-blocks
1 |
A data frame with 1152 observations on the following 7 variables.
Location
Replation that contains a coup of blocks
Block
Cultivar
Row in field map
Column in field map
yield
The Design and Analysis of Factorial Experiments, page 74; John, P.W.M. (1971) Statistical Design and Analysis of Experiments, page 99.
Multi-environment trial of 64 corn hybrids in six counties in North Carolina. Each location had 3 replicates in in incomplete-block design. Note: In the original data, each county had 6 missing plots. This data has rows for each missing plot that uses the same county/block/rep to fill-out the row, sets the genotype to G01, and sets the yield to missing. These missing values were added to the data so that asreml could more easily do AR1xAR1 analysis using rectangular fields.
Julian Besag and D Higdon, 1999. Bayesian Analysis of Agricultural Field Experiments, Journal of the Royal Statistical Society: Series B (Statistical Methodology).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | library(vsnc)
library(ggplot2)
library(agridat)
data(MET)
dat <- MET
summary(dat)
# Boxplot for Loc
ggplot(dat, aes(x=Loc, y=yield,colour = Loc)) + geom_boxplot()
# Boxplot for Loc:Rep
ggplot(dat, aes(x=interaction(Rep,Loc), y=yield,colour=Loc)) + geom_boxplot()
# Field map for Loc1
dd <- subset(dat,Loc=="C1")
field.map(yield ~ Col*Row, out1=Rep,dd,main="田间种植图")
desplot(yield ~ Col*Row, out1=Rep, out2=Block,dd,main="田间种植图")
# Field map for Locations
field.map(yield ~ Col*Row|Loc, out1=Rep,dat,main="田间种植图")
field.map(yield ~ Col*Row|Loc, out1=Rep,out2=Block,dat,main="田间种植图")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.