openintro (version 2.0.0)

cle_sac: Cleveland and Sacramento

Description

Data on a sample of 500 people from the Cleveland, OH and Sacramento, CA metro areas.

Usage

cle_sac

Arguments

Format

A data frame with 500 observations representing people on the following 8 variables.

year

Year the data was collected.

state

State where person resides.

city

City.

age

Age of the person.

sex

Gender.

race

Ethnicity.

marital_status

Marital status.

personal_income

Personal income.

Examples

Run this code
# NOT RUN {
library(ggplot2)

ggplot(cle_sac, aes(x = personal_income)) +
  geom_histogram(binwidth = 20000) +
  facet_wrap(~city)

# }

Run the code above in your browser using DataLab