Skip to content

Shiny app to explore South Australia's road accidents data

License

Notifications You must be signed in to change notification settings

asheshwor/crashsa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Exploring South Australia's Road Accidents Data

New version in progress. - 23/11/2022

Demo

Live demo is unavailable, but you can run the app from RStudio using the following code:

## Install missing packages
packagesRequired <- c("shiny", "maptools", "dplyr",
                      "leaflet", "rgeos", "RColorBrewer",
                      "data.table")
packagesToInstall <- packagesRequired[!(packagesRequired %in%
                                          installed.packages()[,"Package"])]
if(length(packagesToInstall)) install.packages(packagesToInstall)
## Run app from Github repo
shiny::runGitHub('asheshwor/crashsa')

Screenshots

app screenshot 1 Screenshot of app

app screenshot 2 Screenshot of app

Data source

The data from Department of Planning, Transport and Infrastructure was obtained from https://data.sa.gov.au/data/dataset/road-crashes-in-sa

Bounding box for suburbs extracted from https://data.sa.gov.au/data/dataset/suburb-boundaries

To-do

  • statistics of data being displayed - use raw data from 2011-2021 done
  • filter by type of incidents: type of accident, licence class, licence type, vehicle year, unit type, sex, age, unit movement from "Units" file
  • filter by number of casualties, casualty type, position in vehicle, injury extent, seatbelt, helmet from "Casualty" file.
  • add data for multiple years
  • Search feature

New UI

Filter design based on full data. Years: Dropdown years from 2012 to 2021 Crash type: Dropdown list Day or night: Radio button Position type: Dropdown list

License:

Code distributed under the terms of the [MIT license] (https://github.com/asheshwor/crashsa/blob/master/LICENSE)

See individual licenses for external data/tools used if any.

About

Shiny app to explore South Australia's road accidents data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published