yields | R Documentation |
The yields
data is from a crop experiment where the crops were grown in
three different soil types, and the yield was taken from 10 randomly chosen
fields per soil type. This is the stacked version of the data, with the
response variable yield in one column.
yields
A data frame with 30 observations (rows) and 2 variables (columns).
Column name | Data type | Description | Values | |
[,1] | yield | integer | Continuous response variable | (3 - 18) |
[,2] | soil | factor | 3 different types of soil | (clay, loam, sand) |
yields.unstacked
# Yields per soil type
boxplot(yield ~ soil, data=yields, col="green")
# Unstack the data
unstacked_yields <- unstack(yields)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.