Load data and libraries

library(datasets)
library(plotly)
library(ggplot2)
data("CO2")

Data Info

The CO2 uptake of six plants from Quebec and six plants from Mississippi was measured at several levels of ambient CO2 concentration. Half the plants of each type were chilled overnight before the experiment was conducted.

Plant: An ordered factor giving a unique identifier for each plant.

Type: A factor with levels Quebec Mississippi giving the origin of the plant

Treatment: A factor with levels nonchilled chilled

conc: A numeric vector of ambient carbon dioxide concentrations (mL/L).

uptake: A numeric vector of carbon dioxide uptake rates \(\frac{\mu \text{mol}}{m^2 \cdot \text{sec}}\).

Uptake vs. CO2 concentration when plants were chilled or not

Uptake vs. CO2 concentration colored on plant origins

table(CO2$Type,CO2$Treatment)
##              
##               nonchilled chilled
##   Quebec              21      21
##   Mississippi         21      21