Learn R Programming

prophet (version 0.1)

prophet_plot_components: Plot the components of a prophet forecast. Prints a ggplot2 with panels for trend, weekly and yearly seasonalities if present, and holidays if present.

Description

Plot the components of a prophet forecast. Prints a ggplot2 with panels for trend, weekly and yearly seasonalities if present, and holidays if present.

Usage

prophet_plot_components(m, fcst, uncertainty = TRUE)

Arguments

m
Prophet object.
fcst
Data frame returned by predict(m, df).
uncertainty
Boolean indicating if the uncertainty interval should be plotted for the trend, from fcst columns trend_lower and trend_upper.