# NOT RUN {
# PP plot examining differences by condition
pp_plot(star, math ~ condition)
# The sample size gets very small in the above within cells (e.g., wild
# changes within the "other" group in particular). Overall, the effect doesn't
# seem to change much by condition.
# Look at something a little more interesting
# }
# NOT RUN {
pp_plot(benchmarks, math ~ ell + season + frl)
# }
# NOT RUN {
# Add some cut scores
pp_plot(benchmarks, math ~ ell, cuts = c(190, 210, 215))
## Make another interesting plot. Use ggplot to customize
# }
# NOT RUN {
library(tidyr)
library(ggplot2)
benchmarks %>%
gather(subject, score, reading, math) %>%
pp_plot(score ~ ell + subject + season,
ref_group = "Non-ELL") +
scale_fill_brewer(name = "ELL Status", palette = "Pastel2") +
scale_color_brewer(name = "ELL Status", palette = "Pastel2") +
labs(title = "Differences among English Language Learning Groups",
subtitle = "Note crossing of reference line") +
theme_minimal()
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab