prophet_plot_components.Rd 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/prophet.R
  3. \name{prophet_plot_components}
  4. \alias{prophet_plot_components}
  5. \title{Plot the components of a prophet forecast.
  6. Prints a ggplot2 with panels for trend, weekly and yearly seasonalities if
  7. present, and holidays if present.}
  8. \usage{
  9. prophet_plot_components(m, fcst, uncertainty = TRUE, plot_cap = TRUE,
  10. weekly_start = 0, yearly_start = 0)
  11. }
  12. \arguments{
  13. \item{m}{Prophet object.}
  14. \item{fcst}{Data frame returned by predict(m, df).}
  15. \item{uncertainty}{Boolean indicating if the uncertainty interval should be
  16. plotted for the trend, from fcst columns trend_lower and trend_upper.}
  17. \item{plot_cap}{Boolean indicating if the capacity should be shown in the
  18. figure, if available.}
  19. \item{weekly_start}{Integer specifying the start day of the weekly
  20. seasonality plot. 0 (default) starts the week on Sunday. 1 shifts by 1 day
  21. to Monday, and so on.}
  22. \item{yearly_start}{Integer specifying the start day of the yearly
  23. seasonality plot. 0 (default) starts the year on Jan 1. 1 shifts by 1 day
  24. to Jan 2, and so on.}
  25. }
  26. \value{
  27. Invisibly return a list containing the plotted ggplot objects
  28. }
  29. \description{
  30. Plot the components of a prophet forecast.
  31. Prints a ggplot2 with panels for trend, weekly and yearly seasonalities if
  32. present, and holidays if present.
  33. }