Learn R Programming

openintro (version 2.4.0)

helmet: Socioeconomic status and reduced-fee school lunches

Description

Examining the relationship between socioeconomic status measured as the percentage of children in a neighborhood receiving reduced-fee lunches at school (lunch) and the percentage of bike riders in the neighborhood wearing helmets (helmet).

Usage

helmet

Arguments

Format

A data frame with 12 observations representing neighborhoods on the following 2 variables.

lunch

Percent of students receiving reduced-fee school lunches.

helmet

Percent of bike riders wearing helmets.

Examples

Run this code

library(ggplot2)

ggplot(helmet, aes(x = lunch, y = helmet)) +
  geom_point()

Run the code above in your browser using DataLab