Learn R Programming

fastR2 (version 1.2.4)

CoolingWater: Cooling Water

Description

Temperature of a mug of water as it cools.

Usage

data(CoolingWater1)

data(CoolingWater2)

data(CoolingWater3)

data(CoolingWater4)

Arguments

Format

A data frame with the following variables.

time

time in seconds

temp

temperature in Celsius (CoolingWater1, CoolingWater2) or Fahrenheit (CoolingWater3, CoolingWater4)

References

  • R. Portmann and S. Wagon. "How quickly does hot water cool?" Mathematica in Education and Research, 10(3):1-9, July 2005.

  • R. Israel, P. Saltzman, and S. Wagon. "Cooling coffee without solving differential equations". Mathematics Magazine, 86(3):204-210, 2013.

Examples

Run this code
data(CoolingWater1)
data(CoolingWater2)
data(CoolingWater3)
data(CoolingWater4)
if (require(ggformula)) {
  gf_line(
    temp ~ time, color = ~ condition, 
    data = rbind(CoolingWater1, CoolingWater2))
}
if (require(ggformula)) {
  gf_line(
    temp ~ time, color = ~ condition, 
    data = rbind(CoolingWater3, CoolingWater4))
}

Run the code above in your browser using DataLab