plot_vmt: Plot VMT over time.

View source: R/vmt.R

plot_vmtR Documentation

Plot VMT over time.

Description

This function plots the sum of the daily link volumes over time, colored and faceted by arbitrary variables in the link table.

Usage

plot_vmt(
  db,
  facet_var = "MPO",
  facet_levels = NULL,
  index = TRUE,
  index_year = 2000
)

Arguments

db

The scenario database.

facet_var

The variable to use in facetting the data.

facet_levels

A character vector giving the levels of the facet variable to use. Levels not called are dropped from the plot; default is NULL, meaning print all levels.

index

Whether to show the variables as indexed against the base year.

index_year

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

Value

A ggplot2 object showing VMT by facility type in each facet level over time.


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