Old Faithful eruptions

references:
- Tintle, et al., ISI, example P.2, p.6
- Old Faithful, Wikipedia
- Geyser Observation and Study Association
- Old Faithful Geyser Live-streaming Webcam

data

Describe the data. What are the observational units in this study? What are the variables? Which variables are categorical? Which variables are quantitative?

SOLUTION:

?faithful           # in package datasets
df <- faithful
colnames(df) <- c("duration", "waiting")
head(df)
##   duration waiting
## 1    3.600      79
## 2    1.800      54
## 3    3.333      74
## 4    2.283      62
## 5    4.533      85
## 6    2.883      55
str(df)
## 'data.frame':    272 obs. of  2 variables:
##  $ duration: num  3.6 1.8 3.33 2.28 4.53 ...
##  $ waiting : num  79 54 74 62 85 55 88 85 51 85 ...

duration

Histogram.

Summarize the shape, center, spread, and range of the distribution of durations of Old Faithful eruptions.

SOLUTION:

ggplot(df, aes(duration)) +
  geom_histogram(color = "saddlebrown", fill = "wheat") +
  labs(x = "Duration (min)",
       title = "Old Faithful Duration")