prophet_plot_components.Rd 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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, render_plot = TRUE)
  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. \item{render_plot}{Boolean indicating if the plots should be rendered.
  27. Set to FALSE if you want the function to only return the list of panels.}
  28. }
  29. \value{
  30. Invisibly return a list containing the plotted ggplot objects
  31. }
  32. \description{
  33. Plot the components of a prophet forecast.
  34. Prints a ggplot2 with whichever are available of: trend, holidays, weekly
  35. seasonality, yearly seasonality, and additive and multiplicative extra
  36. regressors.
  37. }