| hsb2 | R Documentation |
Two hundred observations were randomly sampled from the High School and Beyond survey, a survey conducted on high school seniors by the National Center of Education Statistics.
hsb2
A data frame with 200 observations and 11 variables.
Student ID.
Student's gender, with levels
female and male.
Student's race, with levels
african american, asian, hispanic, and white.
Socio economic status of student's family, with levels
low, middle, and high.
Type of school,
with levels public and private.
Type of program,
with levels general, academic, and vocational.
Standardized reading score.
Standardized writing score.
Standardized math score.
Standardized science score.
Standardized social studies score.
UCLA Institute for Digital Research & Education - Statistical Consulting.
library(ggplot2)
ggplot(hsb2, aes(x = read - write, y = ses)) +
geom_boxplot() +
labs(
x = "Difference between reading and writing scores",
y = "Socio-economic status"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.