plot_hubs | R Documentation |
The 'plot_hubs' function visualizes high-density potential integration transit stops (hubs) on a map. It overlays the identified stops on the route shapes from the GTFS data, providing a representation of the transit network and its key integration hubs.
plot_hubs(gtfs, i = 0.05)
gtfs |
A GTFS object, preferably of class 'wizardgtfs'. If not, the function will attempt to convert it using 'GTFSwizard::as_wizardgtfs()'. |
i |
A numeric value representing the percentile threshold for selecting high-density stops. Defaults to '0.05' (top 5% of stops by number of routes). |
A 'ggplot' object representing the transit network with hubs overlaid. The plot includes:
Route shapes from the GTFS data, displayed in gray.
High-density transit stops.
Ensure the 'gtfs' object includes valid 'shapes' and 'stop_times' tables for accurate visualization. The hubs are identified using the 'get_hubs' function, which relies on stop and trip data.
[GTFSwizard::get_hubs()], [GTFSwizard::get_shapes_sf()]
plot_hubs(for_bus_gtfs, i = 0.02)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.