Slide 1

Slide 1 text

I: The software

Slide 2

Slide 2 text

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

Slide 3

Slide 3 text

/ 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 /

Slide 4

Slide 4 text

/ RStudio RStudio Desktop is highly recommended for Shiny development. /

Slide 5

Slide 5 text

/ 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. · · · · /

Slide 6

Slide 6 text

/ Alternatives For maps animate package Google Charts (googleVis::) and plotly D3 Tableau · · · · · Leaflet (supported by Shiny) Google Maps API · · /

Slide 7

Slide 7 text

/ 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 · · · /

Slide 8

Slide 8 text

/ 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 " , " /

Slide 9

Slide 9 text

/ A second example /

Slide 10

Slide 10 text

/ 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 ) /

Slide 11

Slide 11 text

/ II: Context

Slide 12

Slide 12 text

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) · · · · · /

Slide 13

Slide 13 text

/ Interactive online tools AURIN Leeds-Bradford cycle path interactive map DECC's 'Energy 2050' planning tool Walkability index site Interactive download of bicycle paths · · · · · /

Slide 14

Slide 14 text

/ Design criteria Interactive basemap Points, lines and polygons Cascading effects of different scenarios > - Tidy! · · · /

Slide 15

Slide 15 text

/ Early user testing /

Slide 16

Slide 16 text

/ III: Features and capabilities

Slide 17

Slide 17 text

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

Slide 18

Slide 18 text

/ Zoom-dependent selection and freeze Scope /

Slide 19

Slide 19 text

/ Model output tab I: Coventry /

Slide 20

Slide 20 text

/ Model output tab II: Manchester /

Slide 21

Slide 21 text

/ 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 /

Slide 22

Slide 22 text

/ Example: Trinity Way, Manchester /

Slide 23

Slide 23 text

/ 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? · /

Slide 24

Slide 24 text

/