compare_trips: Compare Trips

View source: R/trips.R

compare_tripsR Documentation

Compare Trips

Description

Compare Trips

Usage

compare_trips(db1, db2, ..., diff_type = "pct_diff")

Arguments

db1

The swim database for the "Reference" scenario.

db2

The swim database for the "Current" scenario.

...

Arguments passed on to extract_trips

db

the scenario database.

facet_var

The region to dplyr::summarize by.

facet_levels

Regions to include in summary.

color_levels

Modes to include in summary. Defaults to all modes other than school. See consolidated modes in mode_types.

index

whether to index mode split off the base year.

index_year

[Optional] index year that should be used as the starting year for data or plots;

diff_type

Character string saying whether to use abolute ('diff') or percent ('pct_diff') differences. Defaults to percent.

Value

A ggplot2 object.


pbsag/swimr documentation built on July 4, 2025, 12:10 p.m.