We use U.S. public data to identify hate groups and hate crimes towards immigrants or hispanic/Latino groups.
In the folder data, we have three data sets:
- splc-hate-groups.csv: refers to the identified hate groups since 2000 by the Southern Poverty Law Center
- ucr_hatecrimes.csv: refers to all the reported hate crimes in the US by the Uniform Crime Reporting (UCR) from FBI
- extremism_incidents.csv: refers to all the identified hate-related incidents since 2002 by the ADL (Anti-Defamation League)
Complementary Data:
-
US Census Bureau API: we used American Community Survey (ACS). The following demographics were downloaded:
- Population estimates of US States from the American Community Survey 5 Year Estimates and 1 Year Estimates.
- 1 Year Estimates are stored in population.csv from US Census Bureau
- Median Income, Foreign Born Population, Mexican Born Population, and Latin American born Population 5 year estimates obtained from the American Community Survey.
For information about US Census API using python see:
-
shapes: folder with the geometries of US States and Territories.
The analysis of the data, literature review and observed facts about hate towards immigrant communities (particularly Hispanic communities) are compiled in this report and the code is in analysis_hate_data.ipynb.
Shiny is an R package to build interactive web apps straight from R where one can host standalone apps on a webpage or embed them in R Markdown documents or build dashboards. As a simple way to build a useful dashboard, we will rely on Shiny. There are two parts of the code:
- aggregate_data.py: A file that aggregates the data and stores it in csv files.
Run:python3 aggregate_data.pyto download the data. - app.R: A file that builds the app (UI and Server) using R and Shiny.
You can check the interactive dashboard here
