Plot a table of hubverse-formatted forecasts as pointintervals
Source:R/plot_hubverse_pointinterval.R
plot_hubverse_pointintervals.Rd
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. DefaultNULL
.- 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"
.