prophet_plot_components.Rd 1.4 KB

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