Learn R Programming

openintro (version 2.4.0)

murders: Data for 20 metropolitan areas

Description

Population, percent in poverty, percent unemployment, and murder rate.

Usage

murders

Arguments

Format

A data frame with 20 metropolitan areas on the following 4 variables.

population

Population.

perc_pov

Percent in poverty.

perc_unemp

Percent unemployed.

annual_murders_per_mil

Number of murders per year per million people.

Examples

Run this code

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"
  )

Run the code above in your browser using DataLab