Description Usage Format Source References Examples

Data for Exercise 5.12 and 5.111

1 |

A data frame/tibble with 299 observations on two variables

- time
a numeric vector

- eruption
a factor with levels

`1`

and`2`

A. Azzalini and A. Bowman, "A Look at Some Data on the Old Faithful Geyser,"
*Journal of the Royal Statistical Society*, Series C, *39* (1990), 357-366.

Kitchens, L. J. (2003) *Basic Statistics and Data Analysis*.
Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.

1 2 3 4 5 6 7 8 9 10 11 12 13 | ```
t.test(time ~ eruption, data = Faithful)
hist(Faithful$time, xlab = "wait time", main = "", freq = FALSE)
lines(density(Faithful$time))
## Not run:
library(ggplot2)
ggplot2::ggplot(data = Faithful, aes(x = time, y = ..density..)) +
geom_histogram(binwidth = 5, fill = "pink", col = "black") +
geom_density() +
theme_bw() +
labs(x = "wait time")
## End(Not run)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.