Chapter 14 Types of Crimes at different Premises

We examine the Crime Types at different Premises.

LACrime %>%
  filter(!is.na(PremiseDescription)) %>%
  group_by(PremiseDescription,CrimeCodeDescription) %>%
  tally() %>%
  ungroup() %>%
  mutate(PremiseDescription = reorder(PremiseDescription,n)) %>%
  arrange(desc(n)) %>%
  head(10) %>%
  
  ggplot(aes(x = PremiseDescription,y = n, fill =CrimeCodeDescription)) +
  geom_bar(stat='identity') +
  labs(x = 'Premise Description and Crime Description', y = 'Count of Incidents', 
       title = 'Count of Incidents and Premise Description and Crime Description') +
  coord_flip() + 
  theme_bw()  + theme(legend.position="bottom")

  • Stolen Vehicle and Burglary from Vehicle are most common Crime Types in the Street.
  • Theft of Identity and Burglary are most common Crime Types in the Single Family Dwelling.