sr_plot_total_enrollment_by_year | R Documentation |
Create a highcharts line plot that shows total enrollment in all schools by year. This function has little use outside the Rmarkdown file as it relies on the specific data in the Rmarkdown file.
sr_plot_total_enrollment_by_year(.data, school_names, grade_span)
.data |
Data frame containing enrollment data. This data frames comes from
|
school_names |
A string containing the school name(s) |
grade_span |
A string containing which grades are included (example: |
A highcharts line plot.
## Not run:
total_enrollment <- sr_ccd_enrollment("schools", "050306000073", 2017:2020, 10:12) |>
dplyr::filter(race == 'Total')
sr_plot_total_enrollment_by_year(total_enrollment, "Bentonville High School", "10-12")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.