compare_tlfd: Compare Trip Length Frequency Distributions

View source: R/tlfd.R

compare_tlfdR Documentation

Compare Trip Length Frequency Distributions

Description

Compare Trip Length Frequency Distributions

Usage

compare_tlfd(
  db1,
  db2,
  region_var = c("MPO", "COUNTY", "STATE"),
  regions = NULL,
  cumulative = FALSE,
  years = NULL,
  index_year = 2000
)

Arguments

db1

The swim database for the "Reference" scenario.

db2

The swim database for the "Current" scenario.

region_var

The region to aggregate to.

regions

The regions to return. If NULL, returns all.

cumulative

Plot cumulative instead of probability density distribution.

years

The years to show in the plot. If null, will show the first and last years.

index_year

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

Value

A ggplot2 object.


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