moved over crash_data_summaries to RMarkdown

This commit is contained in:
Ben Varick 2025-01-27 17:22:31 -06:00
parent e6549ef0c6
commit 0f84c1fbf3
Signed by: ben
SSH key fingerprint: SHA256:jWnpFDAcacYM5aPFpYRqlsamlDyKNpSj3jj+k4ojtUo
20 changed files with 2893 additions and 2374 deletions

View file

@ -17,9 +17,9 @@ This is a series of RMarkdown files that generates maps of crashes between motor
- School Crash Maps `make schoolpdfs`: generates maps of all the schools in Wisconsin and where cars are hitting kids This script pulls in the TOPS data from a folder of csvs that youve downloaded from the data retrieval tool. It also draws the walk boundary around each school, this is done with a OpenStreetMap routing engine that is running in a docker container. It also needs access to an API key for StadiaMaps to download all the basemap tiles. I recommend downloading the whole state and filtering the data with the script. You can edit file `parameters/run_parameters` to choose what county, school type, and district to generate maps for
- Dynamic Map `make crashmaps_dynamic`: This takes the TOPS data and generates dynamic leaflet maps to host on our website. It generates 4 maps: without a title (for in a frame), and with a title, in both English and Spanish.
- Milwaukee Specific map `crashmaps_dynamic_milwaukee`: generate a web map for Milwaukee that includes more fine-grained visualizations of crash densities.
- Crash summaries `make crash_data_summaries`: generates summary csv files that summarize the crash data for a given municipality and county by age, sex, race.
## R Scripts
I'm working to move these to RMarkdown files
- City maps - generates maps for cities in Wisconsin where pedestrian fatalities occur This script pulls in the TOPS data from a folder of csvs that youve downloaded from the data retrieval tool. It also needs access to an API key for StadiaMaps to download all the basemap tiles. You can specify the cities by changing the focus parameters at line ~80
- Crash summaries - generates summary csv files that summarize the crash data for a given municipality and county by age, sex, race.
- City maps - generates maps for cities in Wisconsin where pedestrian fatalities occur.