prophet_plot_components.Rd 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  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)
  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. }
  23. \value{
  24. Invisibly return a list containing the plotted ggplot objects
  25. }
  26. \description{
  27. Plot the components of a prophet forecast.
  28. Prints a ggplot2 with panels for trend, weekly and yearly seasonalities if
  29. present, and holidays if present.
  30. }