Skip to contents

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:

Examples

if (FALSE) { # rjd3jars::check_java_version(silent = TRUE)
x <- cars_registrations
tc <- henderson_smoothing(x)
ggsmoothing_plot(tc)
}