Skip to contents

Plot a table of hubverse-formatted forecasts as pointintervals

Usage

plot_hubverse_pointintervals(
  hubverse_table,
  horizons = NULL,
  point_estimate_quantile = 0.5,
  lower_limit_quantile = 0.025,
  upper_limit_quantile = 0.975,
  location_input_format = "hub",
  location_output_format = "abbr"
)

Arguments

hubverse_table

Hubverse table, as a tibble

horizons

horizons to plot, as a vector of integers. If NULL, plot all available, each in its own facet. Default NULL.

point_estimate_quantile

Quantile to plot as the point estimate. Default 0.5, the median.

lower_limit_quantile

Quantile to plot as the lower bound of the interval. Default 0.025.

upper_limit_quantile

Quantile to plot as the upper bound of the interval. Default 0.975.

location_input_format

Format of the hubverse table location column. Permitted formats are "abbr" (state/territory or nation two letter USPS abbreviation), "hub" ( legacy 2-digit FIPS code for states and territories, US for the USA as a whole), and "long_name" (full English jurisdiction names; not recommended). Default "hub".

location_output_format

How to code locations in the output plot. Permitted formats are "abbr" (state/territory or nation two letter USPS abbreviation), "hub" ( legacy 2-digit FIPS code for states and territories, US #' for the USA as a whole), and "long_name" (full English jurisdiction names). Default "abbr".

Value

A ggplot2 plot of the forecasts as pointintervals