Plot the components of a prophet forecast. Prints a ggplot2 with whichever are available of: trend, holidays, weekly seasonality, yearly seasonality, and additive and multiplicative extra regressors.
prophet_plot_components(
m,
fcst,
uncertainty = TRUE,
plot_cap = TRUE,
weekly_start = 0,
yearly_start = 0,
render_plot = TRUE
)
Prophet object.
Data frame returned by predict(m, df).
Optional boolean indicating if the uncertainty interval should be plotted for the trend, from fcst columns trend_lower and trend_upper.This will only be done if m$uncertainty.samples > 0.
Boolean indicating if the capacity should be shown in the figure, if available.
Integer specifying the start day of the weekly seasonality plot. 0 (default) starts the week on Sunday. 1 shifts by 1 day to Monday, and so on.
Integer specifying the start day of the yearly seasonality plot. 0 (default) starts the year on Jan 1. 1 shifts by 1 day to Jan 2, and so on.
Boolean indicating if the plots should be rendered. Set to FALSE if you want the function to only return the list of panels.
Invisibly return a list containing the plotted ggplot objects