Learn R Programming

agridat (version 1.23)

petersen.sorghum.cowpea: Intercropping experiment of sorghum/cowpea

Description

Intercropping experiment of sorghum/cowpea.

Usage

data("petersen.sorghum.cowpea")

Arguments

Format

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

block

block

srows

sorghum rows

crows

cowpea rows

syield

sorghum yield, kg/ha

cyield

cowpea yield, kg/ha

Details

An intercropping experiment in Tanzania. The treatments consisted of four ratios of sorghum rows to cowpea rows as 1:4, 2:3, 3:2, 4:1.

The sole-crop yields with 5 rows per crop are also given (not part of the blocks).

References

None

Examples

Run this code
if (FALSE) {

libs(agridat)
data(petersen.sorghum.cowpea)
dat <- petersen.sorghum.cowpea

# Petersen figure 10.4a
tmp <- dat 

with(tmp, plot(srows, syield + cyield,
               col="blue", type='l', xlim=c(0,5), ylim=c(0,4000)) )
with(tmp, lines(srows, syield) )
with(tmp, lines(srows, cyield, col="red") )
title("Cow Pea (red), Sorghum (black), Total (blue)")
title("petersen.sorghum.cowpea", line=0.5)

}

Run the code above in your browser using DataLab