R code

profilesri999
DSCI5260_SIP1.pdf

DSCI5260 Fall 2021

Short Individual Project 1

Instructions for Submission:

1. Include your last name in the name of the file you submit. For example, if your

name is Michael Phelps, name the file DSCI5260_SIP1_Phelps.

2. DO NOT use an absolute directory path in your R script. I should be able to run your code without trying to find the input data in another directory. Assume that I will have the downloaded the “Crimes_2020.csv” file in my directory where I will save your R code.

3. Upload a .RMD file with your R code. Also, upload a screenshot(s) of your final output (in jpeg/png/pdf or in a comparable format).

4. Carefully preprocess the data for any missing or potentially incorrect information.

5. Label the charts and tables appropriately, including titles, axis names, and axis labels.

6. Please check the deadline on Canvas. Any assignment submitted after the deadline will be considered late and will not be graded.

DSCI5260 Fall 2021

Problem Statement:

Use the data file, Crimes_2020.csv, for this assignment. The data set contains the reported incidents of crime in the City of Chicago. Variable descriptions and other details about the data set can be found in the following site: https://data.cityofchicago.org/Public-Safety/Crimes-2001-to-present/ijzp-q8t2. The data file for this assignment contains information from 2020 only.

Create a shiny app using the above data showing the following information under separate tabs.

Feel free to customize and/or supplement the recommended charts or tables below if you think the same information can be presented in a more effective way.

Tab 1: Frequency of crime by month and crime type. Create bar charts for different month crime type combinations. Tab 2: Location of crimes by date on a map. Tab 3: A heatmap using the type of the crime and the hour of the day when the crime was committed. (The goal of this heatmap is to identify any relationship between crime type and hour at which the crime is committed.) Tab 4: Create a tab with any other information (e.g., a predictive model of crime) that you think would be useful in explaining crime in Chicago.