View source: R/utils-viz-tables.R
sr_viz_district_boundary | R Documentation |
Leaflet plot showing district boundaries as a shapefile and a point for schools. The tooltip over teh school contains school infomration.
sr_viz_district_boundary(district_shapefile, school_information)
district_shapefile |
The shapefile of the district. Can use |
school_information |
A data frame containing information about the school, including
latitdue and longitude location data. Can get this information from |
A leaflet plot with the district boundaries and the school locations.
## Not run:
district_shapefile <- tigris::school_districts(state = "AR", cb = FALSE) |>
dplyr::filter(GEOID == "0503060")
school_directory <- sr_ccd_directory('schools', "050306000073", 2021)
sr_viz_district_boundary(district_shapefile, school_directory)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.