# get citations refs = RefManageR::ReadZotero(group = "418217", .params = list(collection = "JFR868KJ", limit = 100)) refs_df = as.data.frame(refs) # View(refs_df) # citr::insert_citation(bib_file = "vignettes/refs_training.bib") RefManageR::WriteBib(refs, "refs.bib") # citr::tidy_bib_file(rmd_file = "vignettes/pct_training.Rmd", messy_bibliography = "vignettes/refs_training.bib") options(htmltools.dir.version = FALSE) knitr::opts_chunk$set(message = FALSE) library(RefManageR) BibOptions(check.entries = FALSE, bib.style = "authoryear", cite.style = 'alphabetic', style = "markdown", first.inits = FALSE, hyperlink = FALSE, dashed = FALSE) my_bib = refs
library(RefManageR) my_bib = RefManageR::ReadBib("~/itsleeds/pct/inst/rmd/refs.bib")
# publish results online cp -Rv ~/itsleeds/pct/data-raw/slides/pct-slides-cac-2021* ~/robinlovelace/static/presentations # cp -Rv inst/rmd/libs ~/saferactive/site/static/slides/ cd ~/robinlovelace/static/presentations git add -A git status git commit -am 'Update slides' git push cd -
background-image: url(https://media.giphy.com/media/YlQQYUIEAZ76o/giphy.gif) background-size: cover class: center, middle
1st prototype: Hackathon at ODI Leeds in February 2015
We identifying key routes and mapped them
For description of aims, see Lovelace et al. (2017)
knitr::include_graphics("https://raw.githubusercontent.com/npct/pct-team/master/figures/early.png")
Photo: demo of the PCT to Secretary of State for Transport (March 2017)
.pull-left[
.pull-right[
See these levels at www.pct.bike
]
11:30 to 12:30
You will learn about the open datasets provided by the PCT project and how to use them. While the most common use of the PCT is via the interactive web application hosted at www.pct.bike, there is much value in downloading the data, e.g. to identify existing cycling infrastructure in close proximity to routes with high potential, and to help identify roads in need of interventions from a safety perspective, using data from the constantly evolving and community-driven global geographic database OpenStreetMap (OSM).
In this session, which assumes you have experience using QGIS or R, you will learn how to:
???
Preliminary timings:
Intro to the workshop and team and demo of the web app: 15 minutes
Working together: downloading PCT data and opening in QGIS (Section 1.2), plus demo of analysis(1.3 and 1.4): 15 minutes
Working together: downloading and opening the zip to see QGIS project (20 minutes 1.4 and 1.5)
Discussion of definition of cycle infrastructure (Joey 5 minutes, 1.5)
Discussion of schools data and merging school and commute route networks (Nathanael 5 minutes)
background-image: url(https://user-images.githubusercontent.com/1825120/130370123-5b8885de-4aed-43b4-8a49-b2f875ffff1b.png)
See Section 1.2 of the training materials at https://itsleeds.github.io/pct/articles/getting.html
See Section 1.3 of the training materials at https://itsleeds.github.io/pct/articles/getting.html
See Section 1.4 of the training materials at https://itsleeds.github.io/pct/articles/getting.html
Download zip file from https://github.com/ITSLeeds/pct/releases/download/0.8.0/pctqgis.zip
See Section 1.6 of the training materials at https://itsleeds.github.io/pct/articles/getting.html
library(pct) library(sf) # key package for working with spatial vector data library(dplyr) # in the tidyverse library(tmap) # installed alongside mapview region_name = "north-yorkshire" zones_all = get_pct_zones(region_name)
After hearing from many people who were interested in my #QGIS and #Python courses, but could not afford the online instructor-led classes - I have made all 6 courses available for free for self-study. Full material and data packages are at https://t.co/Sgy4zsx6rT pic.twitter.com/tlqV9nV5L0
— Ujaval Gandhi (@spatialthoughts) August 21, 2020
Source: https://twitter.com/spatialthoughts/status/1296821055604969473
On the R side, the Transport section of Geocomputation with R
See Section 2 of itsleeds.github.io/pct/articles/getting.html
Designed for people with experience with the PCT and cycling uptake estimates who want to learn more about how uptake models work and how to generate new scenarios of change. Reproducible and open R code will be used to demonstrate the concepts so knowledge of R or other programming languages is recommended but not essential, as there will be conceptual exercises covering the factors linked to mode shift. In it you will:
Timings for CCA conference:
Intro: 5 minutes
Set-up: 15 minutes, all working together
Demo of PCT scenarios: 15 minutes
Scenarios of change 15 minutes
Training an update model + questions 10 minutes
See https://www.robinlovelace.net/presentations/pct-slides-cac-2021.html#1
.pull-left[
Uses that were not initially planned
]
--
.pull-right[
r Citep(my_bib, "lovelace_stplanr:_2018", .opts = list(cite.style = "authoryear"))
r Citep(my_bib, "lovelace_geocomputation_2019", .opts = list(cite.style = "authoryear"))
r Citep(my_bib, "goodman_scenarios_2019", .opts = list(cite.style = "authoryear"))
]
--
See web.tecnico.ulisboa.pt for interactive map
background-image: url(https://raw.githubusercontent.com/saferactive/saferactive/master/figures/la-multipliers.gif)
--
Plans from Leeds City Council responding to national guidance and funding for 'pop-up' cycleways (image credit: Leeds City Council):
background-image: url(https://raw.githubusercontent.com/cyipt/popupCycleways/master/figures/results-top-leeds.png)
PrintBibliography(my_bib) # RefManageR::WriteBib(my_bib, "refs-geostat.bib")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.