R Dataset / Package datasets / PlantGrowth

On this R-data statistics page, you will find information about the PlantGrowth data set which pertains to Results from an Experiment on Plant Growth. The PlantGrowth data set is found in the datasets R package. You can load the PlantGrowth data set in R by issuing the following command at the console data("PlantGrowth"). This will load the data into a variable called PlantGrowth. If R says the PlantGrowth data set is not found, you can try installing the package by issuing this command install.packages("datasets") and then attempt to reload the data with the library() command. If you need to download R, you can go to the R project website. You can download a CSV (comma separated values) version of the PlantGrowth R data set. The size of this file is about 374 bytes.

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

Format

A data frame of 30 cases on 2 variables.

R project statistics dataset table
[, 1] weight numeric
[, 2] group factor

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

Source

Dobson, A. J. (1983) An Introduction to Statistical Modelling. London: Chapman and Hall.

Examples

## 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))

Dataset imported from https://www.r-project.org.

Attachments: csv, json

<iframe src="https://pmagunia.com/iframe/r-dataset-package-datasets-plantgrowth.html" width="100%" height="100%" style="border:0px"></iframe>