This interactive dashboard is designed to provide detailed insights into the safety and crime statistics of various areas within Los Angeles. It allows users to compare crime rates with the LA average, understand the demographics of victims, and assess the overall safety of different neighborhoods.
The safety index provides a quick view of how safe the selected area is relative to others in LA. A higher percentage means higher safety.
demo.mp4
- Clone the repository:
git clone https://github.com/vasia-korz/crime-dashboard-la
- Enter the directory and create
data
directory:
cd crime-dashboard-la
mkdir data
-
Download the dataset and put it into
data
directory. You should havedataset_extended.csv
file in that folder. -
Run preprocessing script:
- Windows
python preprocessing.py
- macOS/Linux
python3 preprocessing.py
- Launch the application
- From RStudio: click on the button "Run app" with green arrow.
- From CLI:
bash run.sh
The visualization would not be possible without the collected data. The details, with the dataset itself, you can find on the Los Angeles - Open Data Portal. Design decisions forced us to apply several preprocessing steps, which you can find in the preprocessing.py script.