murders | R Documentation |
Population, percent in poverty, percent unemployment, and murder rate.
murders
A data frame with 20 metropolitan areas on the following 4 variables.
Population.
Percent in poverty.
Percent unemployed.
Number of murders per year per million people.
We do not have provenance for these data hence recommend not using them for analysis.
library(ggplot2)
ggplot(murders, aes(x = perc_pov, y = annual_murders_per_mil)) +
geom_point() +
labs(
x = "Percent in poverty",
y = "Number of murders per year per million people"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.