plot_mainmode_piechart: Plot the distribution of modes as a pie chart

View source: R/output_trips.R

plot_mainmode_piechartR Documentation

Plot the distribution of modes as a pie chart

Description

Takes the tibble created by read_output_trips to plot a pie chart of the modal split using the column main_mode.

Usage

plot_mainmode_piechart(
  trips_table,
  unite_modes = character(0),
  united_name = "united"
)

Arguments

trips_table

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

Details

The function automatically detects the modes plots a pie chart. Using the parameter unite_modes, specific modes can be renamed into one with the name specified with united_name (by default 'united')

Value

pie chart plot of transport mode distribution, values given in percent


matsim-vsp/matsim-r documentation built on Feb. 3, 2025, 6:48 p.m.