Learn R Programming

DAAG (version 1.25.6)

leaftemp: Leaf and Air Temperature Data

Description

Data are measurements of vapour pressure and of the difference between leaf and air temperature.

Usage

leaftemp

Arguments

Format

This data frame contains the following columns:

CO2level

Carbon Dioxide level low, medium, high

vapPress

Vapour pressure

tempDiff

Difference between leaf and air temperature

BtempDiff

a numeric vector

Examples

Run this code
print("Fitting Multiple Lines - Example 7.3")

leaf.lm1 <- lm(tempDiff ~ 1 , data = leaftemp)
leaf.lm2 <- lm(tempDiff ~ vapPress, data = leaftemp)
leaf.lm3 <- lm(tempDiff ~ CO2level + vapPress, data = leaftemp)
leaf.lm4 <- lm(tempDiff ~ CO2level + vapPress + vapPress:CO2level,
  data = leaftemp)

anova(leaf.lm1, leaf.lm2, leaf.lm3, leaf.lm4)

summary(leaf.lm2)
plot(leaf.lm2)

Run the code above in your browser using DataLab