Learn R Programming

datasets (version 3.4.3)

PlantGrowth: Results from an Experiment on Plant Growth

Description

Results from an experiment to compare yields (as measured by dried weight of plants) obtained under a control and two different treatment conditions.

Usage

PlantGrowth

Arguments

Format

A data frame of 30 cases on 2 variables.

[, 1] weight numeric

The levels of group are ‘ctrl’, ‘trt1’, and ‘trt2’.

Examples

Run this code
# NOT RUN {
## One factor ANOVA example from Dobson's book, cf. Table 7.4:
require(stats); require(graphics)
boxplot(weight ~ group, data = PlantGrowth, main = "PlantGrowth data",
        ylab = "Dried weight of plants", col = "lightgray",
        notch = TRUE, varwidth = TRUE)
anova(lm(weight ~ group, data = PlantGrowth))
# }

Run the code above in your browser using DataLab