plot_wapr_volatility: Plot WAPR Volatility in a Region

View source: R/laborforce.R

plot_wapr_volatilityR Documentation

Plot WAPR Volatility in a Region

Description

This function calculates the volatility of worker to adult population ratio at an arbitrary geographic level. Volatility is defined as the standard deviation of the percent growth rate of wapr between consecutive periods.

Usage

plot_wapr_volatility(
  db,
  level = c("BZONE", "COUNTY", "MPO", "ALDREGION", "STATE"),
  scope = NULL,
  index_year = 2000
)

Arguments

db

Scenario database.

level

Level at which to calculate volatility over time. Smaller levels, such as BZONE will show higher volatility.

scope

a dplyr::filtering criteria to limit the scope of the dataframe

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.