petersen.sorghum.cowpea | R Documentation |
Intercropping experiment of sorghum/cowpea.
data("petersen.sorghum.cowpea")
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
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).
Roger G Petersen (1994). Agricultural Field Experiments. Marcel Dekker Inc, New York. Page 372.
None
## Not run:
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)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.