Analyzing racial profiling from Connecticut's traffic stop data
- Explore: Traffic stops across Connecticut
- Where and why drivers are pulled over in Connecticut
- Digging deeper into racial disparities in Connecticut traffic stops
- How the 'Veil of Darkness' sheds light on racial profiling
- Case studies: Which neighborhoods police focus traffic enforcement
- Stopped drivers let go about half the time
- Black and Hispanic drivers searched twice as often as white drivers in Connecticut
Some of the data is too large to be listed in this repo, but can be downloaded elsewhere
- Stops between October 2014 and September 2015 - CT Data Collaborative
[data](https://github.com/trendct/data/tree/master/2016/06/traffic-stops-2016/data)- Folder where all dependent and generated data resides
location_analysis- [rmd][html] - Creates many exploratory charts and maps-- many of which ended up being used in the story CASE STUDIES: WHICH NEIGHBORHOODS POLICE FOCUS TRAFFIC ENFORCEMENT
map- [rmd][html] - Generated exploratory maps from the script
town_borders_location_analysis.R. None ultimately used in the published series.
mockup- [rmd][html] - Multiple exploratory charts analyzing a single police department to see what was most effective and narrow down what to include in the overall database.
mockup_officer- [rmd][html] - Multiple exploratory charts analyzing a single police officer to see what was most effective and narrow down what to include in the overall database.
search_contraband- [rmd][html] - Multiple exploratory charts focusing on data used in story 5: BLACK AND HISPANIC DRIVERS SEARCHED TWICE AS OFTEN AS WHITE DRIVERS IN CONNECTICUT
story1- [rmd][html] - Multiple exploratory charts focusing on data used in story 1: DIGGING DEEPER INTO RACIAL DISPARITIES IN CONNECTICUT TRAFFIC STOPS
story1b- [rmd][[html] - Even more exploratory charts focusing on data used in story 1: DIGGING DEEPER INTO RACIAL DISPARITIES IN CONNECTICUT TRAFFIC STOPS
veil2- [rmd][html] - Exploratory charts illustrating the Veil of Darkness used in the story HOW THE 'VEIL OF DARKNESS' SHEDS LIGHT ON RACIAL PROFILING
veilofdarkness- [rmd][html] - Exploratory charts illustrating the Veil of Darkness used in the story HOW THE 'VEIL OF DARKNESS' SHEDS LIGHT ON RACIAL PROFILING
bubble_chart_maker.R- Converts department-level summaries into a json array for a highcharts connected-scatterplot visualization
location_prep.R- Brings in data from an Excel sheet that includes latitude and longitude data for traffic stops from 8 departments. Creates
town_borders_location_analysis.R- Some exploratory maps looking at location-specific traffic stops along borders of towns
officers.R- Run after
towns.R. Adds officer-level analysis and adds it to the department-level summary to create
ccsu_data.csvfrom various spreadsheets of figures calculated by CCSU's Institute for Municipal and Regional Policy, such as coefficients and k means values.
overall_analysis.R- Script that creates a couple bar charts exploring overall stops by day of week and hour of the day
points.R- Generates exploratory chart of disparity points based on
time.R- Testing chart visualization of Veil of Darkness data using Hamden locations
time_all.R- Adds columns determining if a stop happened in sunlight or darkness, adds time of sunrise, sunset, dusk, dawn, and adds other date-specific info to help chart later on
time_version_a.R- Same as above but for 2013-2014 data instead of 2014-2015.
towns.R- Run before
officers.R. Create a town-level analysis dataframe (
mega_town_df11.csv), brings in
ccsu_data.csvto replace calculations with CCSU's "official" figures.
imgfolder inlcudes many generated exploratory charts, some of which was used in final stories
mapsfolder includes shape files used to generate choropleths in the walkthroughs and scriopts