In the same way that climate is “weather conditions prevailing in an area in general or over a long period,”1 flow data represents average patterns of travel over extended chunks of space and time.
This vignette provides a brief introduction to flow data in R. We will explore how it is structured, stored, processed and analysed. Sight is our most powerful sense (followed closely by hearing) and transport behaviour generally exhibits strong spatial patterns. A critical skill for interpretting and communicating travel data is presenting flow data visually. This vignette therefore has a strong focus on visualisation.
We assume some prior experience with R and spatial data and it would be wise to have worked through an introductory textbook or on-line tutorial before tackling flow data with R (e.g. Lovelace and Cheshire 2014; Kabacoff 2011). Experience using R in the real-world and an ability to make sense of on-line resources for learning R is potentially of greater value when facing the complexities of flow data. In any case, ‘throwing yourself in at the deep end’ is also a valid approach in programming, provided you have the required tenacity. So let’s dive in.
Kabacoff, Robert. 2011. R in Action. Manning Publications Co.
Lovelace, Robin, and James Cheshire. 2014. “Introduction to visualising spatial data in R.” National Centre for Research Methods Working Papers 14 (03). London: National Centre for Research Methods; Comprehensive R Archive Network. https://github.com/Robinlovelace/Creating-maps-in-R.