Learn R Programming

agridat (version 1.12)

theobald.barley: Barley yields at multiple locs, years, fertilizer levels

Description

Barley yields at multiple locs, years, fertilizer levels

Usage

data(theobald.barley)

Arguments

Format

A data frame with 105 observations on the following 5 variables.

yield

yield, tonnes/ha

gen

genotype factor

loc

loc factor, 5 levels

nitro

nitrogen kg/ha

year

year, 2 levels

Details

Theobald and Talbot used BUGS to fit a fully Bayesian model for yield response curves.

Locations of the experiment were in north-east Scotland.

Assumed nitrogen cost 400 pounds per tonne. Grain prices used were 100, 110, and 107.50 pounds per tonne for Georgie, Midas and Sundance.

Examples

Run this code
# NOT RUN {
data(theobald.barley)
dat <- theobald.barley
dat <- transform(dat,  env=paste(loc,year,sep="-"))
dat <- transform(dat, income=100*yield - 400*nitro/1000)

require(lattice)
xyplot(income~nitro|env, dat, groups=gen, type='b',
       auto.key=TRUE, main="theobald.barley")

# }

Run the code above in your browser using DataLab