The National Propensity to Cycle Tool: building an on-line interactive tool to prioritise where to investment in walking and cycling

67b1027cca3877a76a9024425519ddde?s=47 Robin
September 14, 2015

The National Propensity to Cycle Tool: building an on-line interactive tool to prioritise where to investment in walking and cycling

Slides for my presentation at the Cycling and Society conference 2015, Manchester

67b1027cca3877a76a9024425519ddde?s=128

Robin

September 14, 2015
Tweet

Transcript

  1. I: The software

  2. Why R? See the free, open source, online tutorial github.com/robinlovelace/Creating-maps-in-R.

    /
  3. / The packages used Can be installed and loaded in

    6 lines of code: p k g s < - c ( " d e v t o o l s " , " s h i n y " , " r g d a l " , " r g e o s " , " g g m a p " ) # o f f i c i a l p a c k a g e s i n s t a l l . p a c k a g e s ( p k g s ) l i b r a r y ( d e v t o o l s ) # e n a b l e s i n s t a l l a t i o n o f l e a f l e t g h _ p k g s < - c ( " r s t u d i o / l e a f l e t " , " r o b i n l o v e l a c e / s t p l a n r " ) i n s t a l l _ g i t h u b ( g h _ p k g s ) # i n s t a l l p a c k a g e s o n g i t h u b l a p p l y ( c ( p k g s , " l e a f l e t " , " s t p l a n r " ) , l i b r a r y , c h a r a c t e r . o n l y = T ) # l o a d a l l /
  4. / RStudio RStudio Desktop is highly recommended for Shiny development.

    /
  5. / Shiny shiny is a framework for creating online interactive

    data visualisation 'apps'. A framework for making R output interactive An 'app' development framework A (small) growing community of developers centred around RStudio A way to structure online tools: separation of GUI and server via s e r v e r . R and u i . R files. · · · · /
  6. / Alternatives For maps animate package Google Charts (googleVis::) and

    plotly D3 Tableau · · · · · Leaflet (supported by Shiny) Google Maps API · · /
  7. / What's shiny good (and not so good) for? Build's

    on R's existing strengths Flexibility Not so good for Data visualisation (ggplot2) Increasingline widely understood language for querying data Amazing range of add-on packages · · · Scalability Database interaction Low-level control · · · /
  8. / What do shiny apps look like? # t y

    p e t h i s t o f i n d o u t ! r u n E x a m p l e ( ) # # V a l i d e x a m p l e s a r e " 0 1 _ h e l l o " , " 0 2 _ t e x t " , " 0 3 _ r e a c t i v i t y " , " 0 4 _ m p g " , " 0 5 _ s l i d e r s " , " /
  9. / A second example /

  10. / Leaflet An R interface to the Leaflet JavaScript library,

    compatible with Shiny. c e n t < - g e o c o d e ( " G i r o n a " ) l e a f l e t ( ) % > % a d d T i l e s ( ) % > % a d d C i r c l e M a r k e r s ( d a t a = c e n t ) /
  11. / II: Context

  12. Policy context See: cedar.iph.cam.ac.uk/research/modelling/npct-tool House of Commons Criticising the DfT

    for using closed models 'Impact' and 'engagement' increasingly important for research funding Complex data cannot be adequately summarised in a single static graphic Phase I: proof of concept (February - August 2015) Phase II: nationwide deployment (November 2015 - 2018) · · · · · /
  13. / Interactive online tools AURIN Leeds-Bradford cycle path interactive map

    DECC's 'Energy 2050' planning tool Walkability index site Interactive download of bicycle paths · · · · · /
  14. / Design criteria Interactive basemap Points, lines and polygons Cascading

    effects of different scenarios > - Tidy! · · · /
  15. / Early user testing /

  16. / III: Features and capabilities

  17. Live demo! See here: geo8.webarch.net/master /

  18. / Zoom-dependent selection and freeze Scope /

  19. / Model output tab I: Coventry /

  20. / Model output tab II: Manchester /

  21. / Planned feature: network tab Estimating cycling rate allocated to

    the road network with https://t.co/DuzyCQCA50. Looks like streams + rivers! pic.twitter.com/geaV0mVKdG — Robin Lovelace (@robinlovelace) August 17, 2015 /
  22. / Example: Trinity Way, Manchester /

  23. / Hopes and dreams The PCT will encourage long-term sustainable

    investment and planning for a 'post-carbon' future The PCT will be of use to researchers as well as policy makers One day strategic transport decisions will be made using open access data and open source software, ensuring transparency and encouraging citizen science The PCT will provide evidence-based guidance of cycle infrastructure worldwide · · · · Questions? · /
  24. /