- The interactive app is designed to explore the dataset and plot the reported number of crimes in the selected neighbourhood and for the selected crime type.
- The output is the plot of crime counts for the years 2003 to 2017.
- It also diplays the number of reported crimes for the selected neighbourhood and crime type for the current year (up to that date), similar to the example below:
library(dplyr)
data %>% filter(data$NEIGHBOURHOOD == "Central Business District" &
data$TYPE == "Theft from Vehicle" &
data$YEAR == "2018") %>%
group_by(YEAR) %>% summarize(totalCrime = n())
## # A tibble: 1 x 2
## YEAR totalCrime
## <int> <int>
## 1 2018 4202