plot_hubs: Plot Transit Hubs

View source: R/plot_.R

plot_hubsR Documentation

Plot Transit Hubs

Description

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.

Usage

plot_hubs(gtfs, i = 0.05)

Arguments

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).

Value

A 'ggplot' object representing the transit network with hubs overlaid. The plot includes:

Base map

Route shapes from the GTFS data, displayed in gray.

Hubs

High-density transit stops.

Note

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.

See Also

[GTFSwizard::get_hubs()], [GTFSwizard::get_shapes_sf()]

Examples

plot_hubs(for_bus_gtfs, i = 0.02)



GTFSwizard documentation built on April 4, 2025, 4:10 a.m.