We have already loaded data representing desire lines in the dataset .This origin-destination (OD) data frame object represents the number of people traveling between the zone represented in o
and d
, as illustrated in Table .To arrange the OD data by all trips and then filter-out only the top 5, type (please refer to Chapter 3 for a detailed description of non-spatial attribute operations):
There are two main types of OD pair:interzonal and intrazonal.Interzonal OD pairs represent travel between zones in which the destination is different from the origin.Intrazonal OD pairs represent travel within the same zone (see the top row of Table ).The following code chunk splits into these two types:
An illustration of the results is presented in Figure 12.3, a simplified version of which is created with the following command (see the code in to reproduce the figure exactly and Chapter for details on visualization with tmap):
The map shows that the city center dominates transport patterns in the region, suggesting policies should be prioritized there, although a number of peripheral sub-centers can also be seen.Next it would be interesting to have a look at the distribution of interzonal modes, e.g. between which zones is cycling the least or the most common means of transport.