Description Usage Format Source Examples
An undirected graph ('igraph' object) containing Postcode Sectors of the Bristol (BS) and Bath (BA) area in South-West England of the United Kingdom. Vertexes represent postcode sectors while edges indicate transportation linkage between adjacent postcode sectors.
1 |
A 'igraph' object with 245 vertexes and 650 edges.
Vertex attributes:
UK postcode sector (e.g. 'BS1 1', 'BS6 5')
Usual resident population, provided by UK Census 2011
Longitude of the postcode sector
Latitude of the postcode sector
Edge attributes:
Road distance between the incident vertexes, in metres
Travel time between the incident vertexes, in seconds
Usual resident population, UK Census 2011 (Table ID: KS101EW) https://www.nomisweb.co.uk/census/2011/ks101ew
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # Create a subgraph using the top 15 vertexes and plot it.
library(igraph)
library(sp)
set.seed(1000)
plot(induced_subgraph(BristolBathGraph, 1:15))
# Create a histogram showing the distribution of travel time
hist(edge_attr(BristolBathGraph, "duration"))
# Scatterplot showing distance and duration between postcode sectors
plot(edge_attr(BristolBathGraph, "distance"),
edge_attr(BristolBathGraph, "duration"),
xlab = "Distance (m)",
ylab = "Duration (seconds)")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.