plot_boxplot_weekly: Generate weekly boxplots

View source: R/plot_boxplot_weekly.r

plot_boxplot_weeklyR Documentation

Generate weekly boxplots

Description

Generate a multi-panel plot of boxplots by week

Usage

plot_boxplot_weekly(
  this_factor,
  this_week,
  forecast = 0,
  this_range = NULL,
  this_type = "Irregular",
  this_title
)

Arguments

this_factor

Numeric vector of factors from a weekly seasonal adjustment.

this_week

Numeric vector; Week of the year to match.

forecast

Numeric scalar; Number of forecasts. Default: 0.

this_range

Numeric scalar; Range of the seasonal factors to be plotted. Default: range taken from the observations being plotted.

this_type

Character string; type of factor being plotted. Default: 'Irregular'

this_title

Character string; Main title for plot.

Value

Generate a mulit-panel plot of boxplots of factors by week. Need to have plot_boxplot_single loaded to run.

Examples

ic_sf_range <- 
   range(ic_sf, ic_sf_auto)
plot_boxplot_weekly(ic_sf, ic_week, 
                    forecast = 0,
                    this_range = ic_sf_range,
                    this_type  = "Seasonal",
                    this_title = 'Initial Claims (default)')
plot_boxplot_weekly(ic_sf_auto, ic_week, 
                    forecast = 0,
                    this_range = ic_sf_range, 
                    this_type  = "Seasonal",
                    this_title = 'Initial Claims (auto outliers)')

bcmonsell/airutilities documentation built on May 16, 2022, 3:23 p.m.