$30 off During Our Annual Pro Sale. View Details »

Montreal R Users Data Dive - Bike accidents

Corey Chivers
April 03, 2013
100

Montreal R Users Data Dive - Bike accidents

Corey Chivers

April 03, 2013
Tweet

Transcript

  1. Welcome to the Data Dive!
    Sponsored By:

    View Slide

  2. Cycling Collisions

    All accidents in Montreal reported 2006-2010

    Obtained and compiled by Roberta Rocha at
    the Gazette
    https://github.com/cjbayesian/collisions

    View Slide


  3. Can we predict accident rates?

    Spatial patterns? Dangerous areas?

    Does the construction holiday have an effect
    on accident rates?
    Some potential questions

    View Slide

  4. Getting Started
    library(lubridate)
    library(maptools)
    library(Hmisc)
    d<-read.csv('data/Bike Accidents.csv',sep='|')
    mtl<-readShapePoly('data/montreal_borough_borders.shp')
    par(bg='black')
    plot(mtl,col='grey')
    points(d$long,d$lat,col='red',pch=20,cex=0.5)
    https://github.com/cjbayesian/collisions
    http://youtu.be/hJE2_XMdfTk

    View Slide


  5. Can we predict accident rates?

    Spatial patterns? Dangerous areas?

    Does the construction holiday have an effect
    on accident rates?
    Some potential questions

    View Slide