# 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

How the PCT works


The first prototype of the PCT

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)


The important of open access models


The PCT in 2021

.pull-left[

Geographic levels in the PCT

.pull-right[

See these levels at www.pct.bike

]


City simulation layer


Workshop 1

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)

New training resources

https://itsleeds.github.io/pct/articles/getting.html

Live demo of the PCT for North Yorkshire

See https://www.pct.bike/


Getting PCT data from the PCT website

See Section 1.2 of the training materials at https://itsleeds.github.io/pct/articles/getting.html


Loading PCT data into QGIS

See Section 1.3 of the training materials at https://itsleeds.github.io/pct/articles/getting.html


Comparing PCT data with infrastructure data and gaps in the network

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


Getting PCT data in R

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)

Next steps with QGIS and R

Source: https://twitter.com/spatialthoughts/status/1296821055604969473

On the R side, the Transport section of Geocomputation with R


Workshop 2

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:


Preliminary timings

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


The workbook

See https://www.robinlovelace.net/presentations/pct-slides-cac-2021.html#1


.pull-left[

Uses of the PCT

Uses that were not initially planned

]

--

.pull-right[

Deploying in new contexts

]

--

For further info, see the training materials at itsleeds.github.io

Many use cases on the PCT website: pct.bike/manual.html


New possibilities in the PCT approach

See web.tecnico.ulisboa.pt for interactive map

background-image: url(https://raw.githubusercontent.com/saferactive/saferactive/master/figures/la-multipliers.gif)

--

Estimating change in exposure

Tackling denominator neglect


Estimating safety levels in KSI/bkm at high resolution


Estimating health benefits of cycling uptake with the PCT


From evidence to network plans

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)

The Rapid tool - see cyipt.bike/rapid


References

PrintBibliography(my_bib)
# RefManageR::WriteBib(my_bib, "refs-geostat.bib")


ITSLeeds/pct documentation built on April 13, 2025, 5:49 p.m.