Learn R Programming

moderndive (version 0.4.0)

MA_schools: Massachusetts Public High Schools Data

Description

Data on Massachusetts public high schools in 2017

Usage

MA_schools

Arguments

Format

A data frame of 332 rows representing Massachusetts high schools and 4 variables

school_name

High school name.

average_sat_math

Average SAT math score. Note 58 of the original 390 values of this variable were missing; these rows were dropped from consideration.

perc_disadvan

Percent of the student body that are considered economically disadvantaged.

size

Size of school enrollment; small 13-341 students, medium 342-541 students, large 542-4264 students.

Examples

Run this code
# NOT RUN {
library(ggplot2)
ggplot(MA_schools, aes(x = perc_disadvan, y = average_sat_math, color = size)) +
  geom_point() +
  geom_smooth(method = "lm", se = FALSE) +
  labs(y = "Math SAT score", x = "Percentage economically disadvantaged", color = "School size")
# }

Run the code above in your browser using DataLab