Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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

Optional boolean to plot uncertainty intervals, which will only be done if m$uncertainty.samples > 0.

plot_cap

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

Value

A ggplot2 plot.


prophet

Automatic Forecasting Procedure

v1.0
MIT + file LICENSE
Authors
Sean Taylor [cre, aut], Ben Letham [aut]
Initial release
2021-03-08

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.