generated from Pakillo/quarto-course-website-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
slides.Rmd
130 lines (74 loc) · 2.63 KB
/
slides.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
---
title: "An introduction to R"
author: "Robin Lovelace"
date: 'University of Leeds `r # Sys.Date()()`<br/><img class="img-footer" alt="" src="https://comms.leeds.ac.uk/wp-content/themes/toolkit-wordpress-theme/img/logo.png">'
output:
xaringan::moon_reader:
# css: ["default", "its.css"]
# chakra: libs/remark-latest.min.js
lib_dir: libs
nature:
highlightStyle: github
highlightLines: true
---
background-image: url(https://c1.staticflickr.com/2/1216/1096671706_571a263b63_b.jpg)
background-position: 50% 50%
class: center, bottom, inverse
# Credit: Mandeep Lota via [flickr](https://www.flickr.com/photos/deepster2k/1096671706)
---
# The team
### Robin Lovelace
- Especially cycling potential ([e.g. to school](http://eprints.whiterose.ac.uk/141852/))
- R developer and teacher, with three books on the subject
- Lead Developer of the Propensity to Cycle Tool ([PCT](http://www.pct.bike/)) and PI on the Cycling Infrastructure Prioritisation Toolkit ([CyIPT](https://www.cyipt.bike))
--
### Caroline
--
### Hussein
--
### Juan
--
### How about you?
<!-- No time for go around, just type in the chat -->
---
# Session overview
Part 1: what R can do
Part 2: shared practical session
Part 3: working on your own/groups
- Using packages: https://itsleeds.github.io/rrsrr/pkgs.html around half an hour
- Manipulating data: filtering and selecting data: https://itsleeds.github.io/rrsrr/data.html#tibbles around half an hour
- Spatial data: https://itsleeds.github.io/rrsrr/space.html
---
## Set-up
See https://itsleeds.github.io/rrsrr/introduction.html#prerequisites
---
## Why R
Growth + future proof: https://stackoverflow.blog/2017/10/10/impressive-growth-r/
Scalable: https://www.pct.bike/
--
## Why not R?
- Time to learn
- Other options are available
---
# Demo of using R
<!-- 20 mins - until around 09:30 -->
See https://github.com/Robinlovelace/openTransportDataDemo
![](https://camo.githubusercontent.com/5cc3bcc50e1b1e057510c6babc17694cea15a2e235a2a737a697392f3ff68cc7/68747470733a2f2f692e696d6775722e636f6d2f6f457576315a6a2e706e67)
---
# Deeper dive into R
See https://itsleeds.github.io/rrsrr/
![](https://itsleeds.github.io/rrsrr/figures/road-casualties.png)
---
# Questions on how to use R for transport research
<!-- (20 minutes) -->
---
## Breakout rooms
- See https://github.com/ITSLeeds/rintro
---
## Further resources
- Use R's internal help, e.g. `?plot`
Beginner: https://rstudio.cloud/learn/primers/
Intermediate: Geocomputation with R https://geocompr.robinlovelace.net/transport.html
Advanced: R for Data Science https://r4ds.had.co.nz/introduction.html
---
# Thanks + questions