Results from an Experiment on Plant Growth

The R dataset contains results from an experiment to compare yields (as measured by dried weight of plants) obtained under a control and two different treatment conditions. It is a data frame of 30 cases on 2 variables.

Load package and data

library(plotly)
data("PlantGrowth")
dim(PlantGrowth)
## [1] 30  2
str(PlantGrowth)
## 'data.frame':    30 obs. of  2 variables:
##  $ weight: num  4.17 5.58 5.18 6.11 4.5 4.61 5.17 4.53 5.33 5.14 ...
##  $ group : Factor w/ 3 levels "ctrl","trt1",..: 1 1 1 1 1 1 1 1 1 1 ...
head(PlantGrowth)
##   weight group
## 1   4.17  ctrl
## 2   5.58  ctrl
## 3   5.18  ctrl
## 4   6.11  ctrl
## 5   4.50  ctrl
## 6   4.61  ctrl

Draw plot

This plot was created on 5th of September 2019:

plot_ly(PlantGrowth, y = ~weight, color = ~group, type = "box") %>% layout(title = 'Plant Growht per group')

Source

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

This plot was an exercise for the course “Developing Data Products” from Johns Hopkins on Coursera.