Use this link to see the markdown file alongwith code and output.
I used data from Eurostat and CSO Ireland website (links to datasets are present in above link), to find out key points in data and visualize data such that in single graphics most of the data could be represented.
I have used below R packages in this reop:
- rio - for importing the datasets
- tidyverse (ggplot2, dplyr, tibble) - for manipulation and visualisation of data
- gganimate - for animating the visual output
- gifski, png - dependencies of gganimate
The Eurostat crime dataset records offences (values per hundred thousand in-habitants) by 13 offence categories in 41 European Countries from year 2008 to 2017. link for further description
13 Offence categories
- Intentional homicide
- Attempted intentional homicide
- Assault
- Kidnapping
- Sexual violence
- Rape
- Sexual assault
- Robbery
- Burglary
- Burglary of private residential premises
- Theft
- Theft of a motorized land vehicle
- Unlawful acts involving controlled drugs or precursors
41 Countries
- Belgium
- Bulgaria
- Czechia
- Denmark
- Germany (until 1990 former territory of the FRG)
- Estonia
- Ireland
- Greece
- Spain
- France
- Croatia
- Italy
- Cyprus
- Latvia
- Lithuania
- Luxembourg
- Hungary
- Malta
- Netherlands
- Austria
- Poland
- Portugal
- Romania
- Slovenia
- Slovakia
- Finland
- Sweden
- England and Wales
- Scotland
- Northern Ireland (UK)
- Iceland
- Liechtenstein
- Norway
- Switzerland
- Montenegro
- North Macedonia
- Albania
- Serbia
- Turkey
- Bosnia and Herzegovina
- Kosovo (under United Nations Security Council Resolution 1244/99)
I have used Bar charts as basic structure for graphical represenation of data using RStudio, ggplot2
package is used to define this basic structure. And for better visualisation over the whole period of time, I've also used gganimate
package, to animate bar chart to change for every year available.