Us Mass Shootings Analysis

An analysis of US mass shootings data (1982 to 2019) provided by Mother Jones. Analysis done using R in RStudio, results published to HTML using RMarkdown, and styled using CSS.
Alternatives To Us Mass Shootings Analysis
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Startr71
2 years agomitR
A template for data journalism in R
Tinyproject10
3 years ago6R
A lightweight data analysis framework for R users
Myrcodesfordataanalysis6
2 years agoHTML
My R Codes For Data Analysis
Data Science With R6
2 months agoR
Data Science | Machine Learning | Data Analysis
5th Weather Chart Documentation4
5 years agoR
Documentation on the C°F 5th Weather Chart data analysis methodology.
Resources3
a year ago
Resources I use in my work
Us Mass Shootings Analysis3
4 years ago1HTML
An analysis of US mass shootings data (1982 to 2019) provided by Mother Jones. Analysis done using R in RStudio, results published to HTML using RMarkdown, and styled using CSS.
Olympic History Analytics In R2
10 months agoRMarkdown
Looking at 120 years of Olympic history and discovering interesting trends, patterns and visualizing our findings using R.
Recommendation System2
2 years agoR
Movie recommendation system using statistics and machine learning methods. Contains code, report and R Markdown file.
Nyc Film Permits And Nypd Resources1
8 months ago
Data Exploration, Analysis and Reporting Using R Markdown
Alternatives To Us Mass Shootings Analysis
Select To Compare


Alternative Project Comparisons
Readme

Project Description

An analysis of US mass shootings between 1982 and 2019.

Output

The output of this code is an html page which can be viewed on Rpubs.com

Motivation

The reason this analysis was conducted was because:

  • I wanted a project to help me to learn more about R
  • someone posted a link to this data set on one of the Data Visualisation Society's Slack channels
  • I was interested in what the data would tell me about mass shootings in the US

Data

This analysis is based on data on US mass shootings 1982 - 2019 provided by Mother Jones:

“Our research focused on indiscriminate rampages in public places resulting in four or more victims killed by the attacker. We exclude shootings stemming from more conventionally motivated crimes such as armed robbery or gang violence.”

Data is available for download on motherjones.com

Tools Used

Analysis done using R in RStudio.

Results published to HTML using RMarkdown.

HTML styled using CSS.

HTML file is hosted on rpubs

R Packages Used

  • tidyverse
  • operators
  • magrittr
  • dplyr
  • knitr
  • sf
  • usmap
  • waffle
  • treemapify
  • gganimate
  • tweenr
  • gifski
  • png
  • viridis

Visualisation Types

ggplot, gganimate, usmap, treemapify and waffle were used to create the data visualisations, which include:

  • Map of US states
  • Treemap
  • A big ol' number
  • Line graph with trend line and data labels
  • Animated bar chart
  • Static bar chart with data labels
  • Lollipop chart with data labels inside the bubbles
  • Proportional stacked bar chart
  • Heatmap
  • Faceted line graphs
  • Waffle chart
  • Diverging bar chart
  • Scatter plot
  • Tables

Useful Links

Popular Rmarkdown Projects
Popular Data Analysis Projects
Popular Data Formats Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Html
Css
R
Visualization
Chart
Data Analysis
Visualisation
Heatmap
Rmarkdown
Ggplot2
Line Chart