Welcome to the Los Angeles Crimes app, a comprehensive tool for exploring crime data in the city of Los Angeles. This Shiny web application provides visualizations and analyses by LA districts to help users understand crime trends and variations over time and across districts.
View of application
- R (version 3.6.0 or higher)
- RStudio
- Shiny and R packages
-
Clone the repo:
git clone [https://github.com/DamienL31/RshineApp/tree/main]
-
Download the repo, store the files in a folder and then create subfolders "www" in which you can put photos, "data" which will contain your data.
-
Download the dataset using this link Crime-Data
-
Open Packages.R : check that you have the same packages as in packages.R if not below the command :
install.packages('package')
Then don't forget to load it :
library(package)
-
Run the "Global.r" file, then change the path of the first line of code to access data.frame to your path (where "data" is stored).
-
Launch the "Crim_Appli.R" file, replace the first 2 lines of the "source" path with your own (where you've stored the repo) so that the Packages.R and Global.R files run.
-
Run the application locally by opening the
crim_appli.R
file in RStudio and clicking 'Run App'.
crim_appli.R
: Defines the user and server interfaceglobal.R
: Contains the variablesPackages.R
: Includes all packages for build an applicationwwww
: Contains pictures
Navigate through the tabs to access different analyses. Utilize dropdowns and buttons to customize your data exploration experience. Note: Please ensure your date range selection falls between 2020-01-01 and 2023-10-30 for accurate statistics.
Explore, analyze, and gain valuable insights into the crime landscape of Los Angeles with the Los Angeles Crimes Application!