Learn R Programming

prophet (version 0.4)

plot_forecast_component: Plot a particular component of the forecast.

Description

Plot a particular component of the forecast.

Usage

plot_forecast_component(m, fcst, name, uncertainty = TRUE,
  plot_cap = FALSE)

Arguments

m

Prophet model

fcst

Dataframe output of `predict`.

name

String name of the component to plot (column of fcst).

uncertainty

Boolean to plot uncertainty intervals.

plot_cap

Boolean indicating if the capacity should be shown in the figure, if available.

Value

A ggplot2 plot.