plot_compare_mainmode_barchart | R Documentation |
Takes two tibbles from read_output_trips, calculates the changes in mode shares and plots them as a bar chart Using the parameter unite_modes, specific modes can be renamed into one with the name specified with united_name (by default 'united')
plot_compare_mainmode_barchart(
trips_table1,
trips_table2,
unite_modes = character(0),
united_name = "united"
)
trips_table1 |
tibble of trips_output (from read_output_trips) |
trips_table2 |
tibble of trips_output (from read_output_trips) |
unite_modes |
optional, vector of character strings, changes names of chosen modes in the column main_mode to a new chosen name (i.e. drtNorth and drtSouth to drt), using the function (process_rename_mainmodes) |
united_name |
optional, character string, specifies the name of the united mode |
Bar chart of changes in modal split
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.