plot.prophet.Rd 871 B

12345678910111213141516171819202122232425262728293031323334353637
  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/prophet.R
  3. \name{plot.prophet}
  4. \alias{plot.prophet}
  5. \title{Plot the prophet forecast.}
  6. \usage{
  7. \method{plot}{prophet}(x, fcst, uncertainty = TRUE, ...)
  8. }
  9. \arguments{
  10. \item{x}{Prophet object.}
  11. \item{fcst}{Data frame returned by predict(m, df).}
  12. \item{uncertainty}{Boolean indicating if the uncertainty interval for yhat
  13. should be plotted. Must be present in fcst as yhat_lower and yhat_upper.}
  14. \item{...}{additional arguments}
  15. }
  16. \value{
  17. A ggplot2 plot.
  18. }
  19. \description{
  20. Plot the prophet forecast.
  21. }
  22. \examples{
  23. \dontrun{
  24. history <- data.frame(ds = seq(as.Date('2015-01-01'), as.Date('2016-01-01'), by = 'd'),
  25. y = sin(1:366/200) + rnorm(366)/10)
  26. m <- prophet(history)
  27. future <- make_future_dataframe(m, periods = 365)
  28. forecast <- predict(m, future)
  29. plot(m, forecast)
  30. }
  31. }