plot_vmt: Plot VMT over time.

Description Usage Arguments Value

View source: R/vmt.R

Description

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

Usage

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

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.

Value

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


pbsag/swimr documentation built on Jan. 14, 2019, 8:58 p.m.