Learn R Programming

agridat (version 1.12)

talbot.potato: Potato yields and trait scores at 12 UK locations

Description

Yield and 14 trait scores for each of 9 potato varieties at 12 locations in UK.

Arguments

Format

A list of two matrices, yield and char. See details below.

Details

The yield matrix contains mean tuber yields (t/ha) of 9 varieties of potato at 12 centers in the United Kingdom over five years 1983-1987. The following abbreviations are used for the centers.

BU Bush
CA Cambridge
CB Conon Bridge
CC Crossacreevy
CP Cockle Park
CR Craibstone
GR Greenmount
HA Harper Adams
MO Morley
RO Rosemaund
SB Sutton Bonnington
TE Terrington

The char matrix contains the scores of 14 traits on each of the 9 varities.

Examples

Run this code
# NOT RUN {
data(talbot.potato)

if(require(pls)){

  char <- talbot.potato$char
  yield <- talbot.potato$yield

  # Transform columns to zero mean and unit variance
  char <- scale(char)
  yield <- scale(yield)

  m1 <- plsr(yield ~ char, ncomp=3)
  summary(m1)

  # Loadings factor 1
  lo <- loadings(m1)[,1,drop=FALSE]
  round(-1*lo[order(-1*lo),1,drop=FALSE],2)

  biplot(m1, main="talbot.potato - biplot")

}

# }

Run the code above in your browser using DataLab