Generates a list of ggplot2 graphics displaying various diagnostic and
comparative plots for a "tc_estimates" object.
Usage
ggsmoothing_plot(
object,
plots = c("normal", "confint", "lollypop", "implicit_forecasts",
"underlying_forecasts"),
level = 0.95,
...
)Arguments
- object
An object of class
"tc_estimates".- plots
A character vector specifying the types of plots to generate. Available options are
"normal","confint","lollypop","implicit_forecasts", and"underlying_forecasts". Defaults to generating all available plots.- level
The confidence level required (defaults to
0.95).- ...
Additional graphical arguments passed to internal plotting functions.
Value
A list of ggplot objects corresponding to the requested plots.
Details
The following plot types can be produced:
"normal": Standard plot showing trend-cycle and seasonally adjusted series viaautoplot.tc_estimates()."confint": Confidence interval plot viaggconfint_plot()."lollypop": Lollipop chart comparing estimates viagglollypop()."implicit_forecasts": Implicit forecasts plot viaggimplicit_forecasts_plot()."underlying_forecasts": Underlying forecasts plot viaggunderlying_forecasts_plot().
Examples
if (FALSE) { # rjd3jars::check_java_version(silent = TRUE)
x <- cars_registrations
tc <- henderson_smoothing(x)
ggsmoothing_plot(tc)
}