Learn R Programming

PASWR2 (version 1.0.5)

MILKCARTON: Milk Carton Drying Times

Description

A plastics manufacturer makes two sizes of milk containers: half gallon and gallon sizes. The time required for each size to dry is recorded in seconds in the data frame MILKCARTON.

Usage

MILKCARTON

Arguments

Format

A data frame with 80 observations on the following 2 variables:

  • seconds (drying time in seconds)

  • size (factor with levels halfgallon and wholegallon)

References

Ugarte, M. D., Militino, A. F., and Arnholt, A. T. 2015. Probability and Statistics with R, Second Edition. Chapman & Hall / CRC.

Examples

Run this code
# NOT RUN {
ggplot(data = MILKCARTON, aes(x = size, y = seconds)) + geom_boxplot()
ggplot(data = MILKCARTON, aes(x = size, y = seconds, fill = size)) + geom_boxplot() + 
guides(fill = "none") + scale_fill_brewer() + 
labs(x = "size of container", y = "drying time in seconds")
# }

Run the code above in your browser using DataLab