Chapter 13 Crimes at different Premises

We investigate how the crimes are distributed among different places or Premises.

LACrime %>%
  filter(!is.na(PremiseDescription)) %>%
  group_by(PremiseDescription) %>%
  tally() %>%
  ungroup() %>%
  mutate(PremiseDescription = reorder(PremiseDescription,n)) %>%
  arrange(desc(n)) %>%
  head(20) %>%

  ggplot(aes(x = PremiseDescription,y = n)) +
  geom_bar(stat='identity',colour="white", fill =fillColor2) +
  geom_text(aes(x = PremiseDescription, y = 1, label = paste0("(",n,")",sep="")),
            hjust=0, vjust=.5, size = 4, colour = 'black',
            fontface = 'bold') +
  labs(x = 'PremiseDescription', y = 'Count of Incidents', 
       title = 'Count of Incidents and PremiseDescription') +
  coord_flip() + 
  theme_bw()

Street , Single family dwelling , Multi unit bwelling, Parking lot rank among the top places for Crimes.