explore_gtfs | R Documentation |
This function pops-up a Shiny application for exploring General Transit Feed Specification (GTFS) data. The application provides an overview of the GTFS data, visualizations of route characteristics, and detailed information on selected routes, allowing users to analyze various aspects of a GTFS feed interactively.
explore_gtfs(gtfs)
gtfs |
A GTFS object, preferably of class 'wizardgtfs'. If not, the function attempts to convert it to 'wizardgtfs' using 'GTFSwizard::as_wizardgtfs()'. |
The Shiny application generated by this function has two main tabs: - **Overview**: Displays general GTFS information, maps, and summary charts of the transit system, including frequency, fleet, speed, and other statistics. - **By Route**: Allows users to select specific routes and view detailed maps and visualizations for each selected route.
If the provided 'gtfs' object does not contain a 'shapes' table, it will attempt to add it using 'GTFSwizard::get_shapes()', issuing a warning
A Shiny app object that, when run, opens an interactive dashboard for GTFS data exploration.
[GTFSwizard::as_wizardgtfs()], [GTFSwizard::get_shapes()], [GTFSwizard::plot_calendar()]
if (interactive()) {
# To run the Shiny application:
explore_gtfs(gtfs = GTFSwizard::for_rail_gtfs)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.