Learn R Programming

BSDA (version 1.2.1)

Monoxide: Carbon monoxide emitted by smoke stacks of a manufacturer and a competitor

Description

Data for Exercise 7.45

Usage

Monoxide

Arguments

Format

A data frame/tibble with ten observations on two variables

company

a vector with values manufacturer and competitor

emission

carbon monoxide emitted

References

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

Examples

Run this code

boxplot(emission ~ company, data = Monoxide, col = topo.colors(2))
t.test(emission ~ company, data = Monoxide)
wilcox.test(emission ~ company, data = Monoxide)
if (FALSE) {
library(ggplot2)
ggplot2::ggplot(data = Monoxide, aes(x = company, y = emission)) + 
           geom_boxplot() + 
           theme_bw()
}

Run the code above in your browser using DataLab