Toxic | R Documentation |
Data for Exercises 1.55, 5.08, 5.109, 8.58, and 10.35
Toxic
A data frame/tibble with 51 observations on five variables
U.S. state
U.S. region
number of commercial hazardous waste sites
percent of minorities living in communities with commercial hazardous waste sites
a numeric vector
Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.
hist(Toxic$sites, col = "red")
hist(Toxic$minority, col = "blue")
qqnorm(Toxic$minority)
qqline(Toxic$minority)
boxplot(sites ~ region, data = Toxic, col = "lightgreen")
tapply(Toxic$sites, Toxic$region, median)
kruskal.test(sites ~ factor(region), data = Toxic)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.