GithubHelp home page GithubHelp logo

hrbrmstr / 2021-gun-dealer-inspections-data Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 0.0 908 KB

🔫 Geocoded version of The Trace & USA Today's ATF Exposé • https://projects.thetrace.org/inspections/

License: MIT License

2021-gun-dealer-inspections-data's Introduction

2021-gun-dealer-inspections-data

Geocoded version of The Trace & USA Today's ATF Exposé • https://projects.thetrace.org/inspections/

The Trace/USA Today provided the data in CSV format but it did not include the geocoded longitude & latitude. However, that data was available in a <script> tag on the page linked above. 14 had no geocoding information from that <script> tag and, thus, are not in the geojson version of the data.

The license_type field was used to join license description data from https://www.atf.gov/resource-center/fact-sheet/fact-sheet-federal-firearms-and-explosives-licenses-types.

gun dealer violations

library(sf)
library(hrbragg) # github.com/hrbrmstr/hrbragg
library(tidyverse)

atf_df <- st_read("https://github.com/hrbrmstr/2021-gun-dealer-inspections-data/raw/main/atf-inspection-reports-data.geojson")

ggplot() +
  geom_sf(
    data = atf_df %>% 
      distinct(ffl_proprietor_2, citation_count, .keep_all = TRUE) %>% 
      arrange(citation_count),
    aes(color = citation_count)
  ) +
  scale_color_viridis_c(name = "Citation\nCount") +
  coord_sf(crs = 5070 , datum = NA) +
  labs(
    title = "U.S. Gun Dealer Violations 2015-2017"
  ) +
  theme_inter(grid="", mode = "dark") +
  theme(legend.position = "bottom")

2021-gun-dealer-inspections-data's People

Contributors

hrbrmstr avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.