London Crime Rates

Grace Pehl, PhD
September 27, 2015

Data Wrangling

  • London crime data and population data came from the London Data Store.
  • I used the dplyr package to summarize crime by category and borough (neighborhood) and calculate the rate based the population of each borough.
  • Spatial data came from Robin Lovelace's spatial information in R tutorial.

Spatial Data in R

  • R stores spatial information in an S4 dataframe
london <- readRDS(file = 'data/crime.Rds')
summary(london)
                  Length                    Class                     Mode 
                      33 SpatialPolygonsDataFrame                       S4 

Making Maps with Leaflet

renderPlot(leaflet(data=london) %>% addTiles() %>% addPolygons(color="black"))

<!–html_preserve–>

<!–/html_preserve–>

Data Analysis Results

  • The crime rate for the London borough of Westminster is much higher than the rest of London.
  • Separating the crime rates by category reveals that most of the variation is in the rate of Theft & Handling crimes.
  • Westminster is the tourist district of London, so there are far more people there then the resident population used to compute the rate. The presence of tourists also draws more pick-pocket types of theft.