Create a bar chart comparing distance traveled on x-axis and number of trips on y-axis for two different runs Takes two tibbles from read_output_trips, categorizes the traveled distances into pre-defined bins and plots the difference in number of trips for each bin. (Bins: 1000,2000,5000,10000,20000,50000,100000 (m)) Using the parameter unite_modes, specific modes can be renamed into one with the name specified with united_name (by default 'united')
Source:R/output_trips.R
plot_compare_distcat_by_mainmode_barchart.Rd
Create a bar chart comparing distance traveled on x-axis and number of trips on y-axis for two different runs Takes two tibbles from read_output_trips, categorizes the traveled distances into pre-defined bins and plots the difference in number of trips for each bin. (Bins: 1000,2000,5000,10000,20000,50000,100000 (m)) Using the parameter unite_modes, specific modes can be renamed into one with the name specified with united_name (by default 'united')
Arguments
- trips_table1
tibble of trips_output (from read_output_trips), number of trips of this table will be extracted from number of trips of trips_table1
- trips_table2
tibble of trips_output (from read_output_trips), from number of trips of this table number of trips of trips_table1 will be extracted
- 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
- dist_column
character string specifying the column name in the trips_table tibble that contains the distance categories.
- distances_array
numeric vector defining the distance thresholds for creating distance categories.