fertilizer | R Documentation |
The length of plants, as measured by root
is recorded for 12 plants.
Each of the plants was observed at week
2, 4, 6, 8 and 10. Six of the
plants had fertilizer added, and six plants are controls.
fertilizer
A data frame with 60 observations (rows) and 4 variables (columns).
Column name | Data type | Description | Values | |
[,1] | root | numeric | Measured length of the root | (0.8 - 11.1) |
[,2] | week | integer | Time of measurement in weeks | (2 - 10) |
[,3] | plant | factor | ID for plant | (ID1...ID12) |
[,4] | treatment | factor | 2 levels of treatment | (control, fertilizer) |
This data has been generated at NMBU.
In The R book
the variable treatment
is named
“fertilizer”.
The R book
, M.J. Crawley, Wiley, 2013.
rootGrowth
# All measurements from week 10
week10 <- fertilizer[which(fertilizer$week == 10),]
# Boxplot of root length in week 10
boxplot(root ~ treatment, data = week10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.