Event box

Mapping crime data in R: An introduction to GIS and spatial data

Mapping crime data in R: An introduction to GIS and spatial data Online

Crime data often contains spatial components. As a result, analyses of crime data can create patterns that are clearly linked to geography. Naturally, putting the data or analysis on a map makes a lot of sense. Unfortunately, if you have never matched statistical data to spatial data then you may not know how easy it can be to make beautiful data maps!

Presenter: Nadia Kennar, UK Data Service

More specifically, in this session, we will:

  • use R packages such as ggplot, sf and tmaps
  • briefly explore open-source crime data
  • introduce how to download, import and use spatial data in the form of shapefiles
  • demonstrate how to join crime data to shapefiles
  • introduce classification methods
  • use census data to accurately map crime rate
  • briefly explore the use of multivariate analyse methods


This workshop is suitable for intermediate (or higher) users of R but there is no need to have experience with GIS software or spatial data. Users should be comfortable with how to set the working directory in R, how to read in data, how to write basic R functions and how to save scripts and output files.

Level: (higher) intermediate

Experience of R: Yes. R and Rstudio must be already installed and working

Knowledge of GIS/Spatial Data: None

Target audience: Researchers/anyone interested in crime and spatial data

Coding material and further instructions will be available mid-January via our GitHub page

This event will be livestreamed on our UK Data Service YouTube channel but the chat will be disabled.

Tuesday, February 13, 2024
5:00am - 6:00am
Time Zone:
Central Time - US & Canada (change)
This is an online event.
Event URL:
  #LoveDataWeek     External Event