Description Usage Format Source Examples
Data on Massachusetts public high schools in 2017
1 |
A data frame of 332 rows representing Massachusetts high schools and 4 variables
High school name.
Average SAT math score. Note 58 of the original 390 values of this variable were missing; these rows were dropped from consideration.
Percent of the student body that are considered economically disadvantaged.
Size of school enrollment; small 13-341 students, medium 342-541 students, large 542-4264 students.
The original source of the data are Massachusetts Department of Education reports http://profiles.doe.mass.edu/state_report/, however the data was downloaded from Kaggle at https://www.kaggle.com/ndalziel/massachusetts-public-schools-data
1 2 3 4 5 | 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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.