Learn R Programming

agridat (version 1.8.1)

corsten.interaction: Corn yield in multi-environment trial

Description

The data is the average yield (kg/acre) of 20 genotypes of corn at 7 locations.

Arguments

source

L C A Corsten and J B Denis, Structuring Interaction in Two-Way Tables By Clustering, Biometrics, 1990, 46, 207--215. Table 1. Used with permission of Jean-Baptiste Denis.

Details

The data is used by Corsten & Denis (1990) to illustrate two-way clustering by minimizing the interaction sum of squares. In their paper, the labels on the location dendrogram have a slight typo. The order of the loc labels shown is 1 2 3 4 5 6 7. The correct order of the loc labels is 1 2 4 5 6 7 3.

Examples

Run this code
dat <- corsten.interaction

require(reshape2)
m1 <- melt(dat, measure.var='yield')
dmat <- acast(m1, loc~gen)

# Corsten (1990) uses this data to illustrate simultaneous row and
# column clustering based on interaction sums-of-squares.
# There is no (known) function in R to reproduce this analysis
# (please contact the package maintainer if this is not true).
# For comparison, the 'heatmap' function clusters the rows and
# columns _independently_ of each other.
heatmap(dmat)

Run the code above in your browser using DataLab