sr_viz_district_boundary: District boundary and school plot

View source: R/utils-viz-tables.R

sr_viz_district_boundaryR Documentation

District boundary and school plot

Description

Leaflet plot showing district boundaries as a shapefile and a point for schools. The tooltip over teh school contains school infomration.

Usage

sr_viz_district_boundary(district_shapefile, school_information)

Arguments

district_shapefile

The shapefile of the district. Can use tigris::school_districts() to get the shapefile.

school_information

A data frame containing information about the school, including latitdue and longitude location data. Can get this information from sr_ccd_directory()

Value

A leaflet plot with the district boundaries and the school locations.

Examples

## 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)



shanejorr/schoolreportr documentation built on Aug. 7, 2023, 12:25 p.m.