multiple_sevar: Compare Population or Employment across multiple scenarios.

View source: R/population.R

multiple_sevarR Documentation

Compare Population or Employment across multiple scenarios.

Description

Scenarios (represented by elements of dbset) are represented as colors, while facet_var specifies the variable to use for facets.

Usage

multiple_sevar(
  dbset,
  db_names,
  variable = c("population", "employment"),
  facet_var = NULL,
  facet_levels = NULL,
  controls = TRUE,
  index = FALSE,
  index_year = 2000
)

Arguments

dbset

A list of connections to SWIM databases.

db_names

A character vector naming the scenarios.

variable

One of c("population", "employment") defining which socioeconomic variable to include in

facet_var

Field to facet by: either "MPO" or "COUNTY".

facet_levels

A character vector of the facet variable specifying which levels to include.

controls

Plot against the control totals. Defaults to TRUE, cannot currently run with FALSE.

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.


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