dyplot.prophet.Rd 854 B

12345678910111213141516171819202122232425262728293031323334353637
  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/plot.R
  3. \name{dyplot.prophet}
  4. \alias{dyplot.prophet}
  5. \title{Plot the prophet forecast.}
  6. \usage{
  7. dyplot.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 dygraph plot.
  18. }
  19. \description{
  20. Plot the prophet forecast.
  21. }
  22. \examples{
  23. \dontrun{
  24. history <- data.frame(
  25. ds = seq(as.Date('2015-01-01'), as.Date('2016-01-01'), by = 'd'),
  26. y = sin(1:366/200) + rnorm(366)/10)
  27. m <- prophet(history)
  28. future <- make_future_dataframe(m, periods = 365)
  29. forecast <- predict(m, future)
  30. dyplot.prophet(m, forecast)
  31. }
  32. }