Motorcycle thefts in Prague

Create a short Quarto report about thefts of two-wheeled motor vehicles (e.g. motorcycles and motor scooters) in Prague in 2022. You should create a Quarto (.qmd) file that renders to a PDF file.

Before you start

Complete Chapters 1–13 of Learn Crime Mapping with R.

You can use this Quarto report template as a starting point for writing your report.

What your report must show

The report should include:

  • A map showing the density of two-wheeled vehicle theft in 2022 clipped to the city boundary and showing the density layer in only those parts of the city that are statistically significant hotspots for this type of crime.
  • A text description of where in Prague has the highest density of this type of theft. For example, if you were mapping this crime for London you might say something like “the highest density of this type of theft is in the West End neighbourhood of the Westminster district, with the highest concentration being centered on the junction of Oxford Street and Regent Street, near Oxford Circus tube station.”

Use these two datasets:

The crime data were obtained from the Police of the Czech Republic and the boundary data from the State Administration of Land Surveying and Cadastre.

You will need to choose the most-appropriate values for the cell-size and bandwidth parameters for your KDE layer. Remember to think about how you need to crop the crime data to properly calculate the hotspots.

Write all your code and report text in one .qmd file that renders to PDF.

Checklist for this exercise

  • The report produces a PDF document.
  • The report has a suitable title, author and date.
  • The report does not include any R code or raw R output. The only output included in the report should be the maps and text that you write.
  • The map shows areas of Prague with more two-wheeled-vehicle thefts than would be expected by chance.
  • The density of crime in those grid cells is shown using an appropriate sequential (not diverging or qualitative) colour scheme.
  • The most visually prominent colour indicates the highest density of crime.
  • The map shows the city boundary.
  • The map includes a suitable base map.
  • The base map does not distract from the data layer or make it harder to see the data layer.
  • It is possible to see the base map through the layer that shows the density of thefts.
  • There is a declarative title and a descriptive subtitle.
  • The caption acknowledges the data sources where required.
  • You have made design choices that make it as easy as possible to show where the hotspots are.
  • You have made design choices that make sure the boundaries do not obscure the places with the highest rates of crime.

The code

  • The .qmd file contains the report text and all analytical code.
  • All necessary packages are loaded at the start.
  • Original files are downloaded to data/raw, read using workspace-relative paths and left unchanged.
  • Population in thousands is converted correctly, and each prefecture has the correct crime counts and boundary.
  • Column and object names use snake case, and comments explain each analytical step.