`plot_routefrequency` generates an interactive plot of the frequency of trips by hour for specified routes in a GTFS dataset. The plot shows the hourly frequency distribution for each route and visualizes different service patterns.
Usage
plot_routefrequency(gtfs, route = NULL)
Value
A `plotly` interactive plot displaying the frequency distribution by hour for each selected route, with:
- Hourly Frequency: A line for each route, indicating its frequency distribution across the day.
- Service Patterns: Transparency levels indicate different service patterns, with the primary pattern highlighted.
Arguments
gtfs
A GTFS object. Ideally, this should be of the `wizardgtfs` class, or it will be converted.
route
A character vector specifying one or more `route_id` values to plot. If `NULL`, all routes are included.
Details
The function filters the GTFS dataset by route and computes hourly frequencies for each service pattern. The plot shows variations in service frequency across hours and highlights the primary service pattern.