Domestic | R Documentation |
Data for Exercise 1.20
Domestic
A data frame/tibble with five observations on two variables
a factor with levels 12-19
, 20-24
,
25-34
, 35-49
, and 50-64
rate of domestic violence per 1000 women
U.S. Department of Justice.
Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.
barplot(Domestic$rate, names.arg = Domestic$age)
## Not run:
library(ggplot2)
ggplot2::ggplot(data = Domestic, aes(x = age, y = rate)) +
geom_bar(stat = "identity", fill = "purple", color = "black") +
labs(x = "", y = "Domestic violence per 1000 women") +
theme_bw()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.