add_changepoints_to_plot.Rd 947 B

123456789101112131415161718192021222324252627282930313233343536
  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/plot.R
  3. \name{add_changepoints_to_plot}
  4. \alias{add_changepoints_to_plot}
  5. \title{Get layers to overlay significant changepoints on prophet forecast plot.}
  6. \usage{
  7. add_changepoints_to_plot(m, threshold = 0.01, cp_color = "red",
  8. cp_linetype = "dashed", trend = TRUE, ...)
  9. }
  10. \arguments{
  11. \item{m}{Prophet model object.}
  12. \item{threshold}{Numeric, changepoints where abs(delta) >= threshold are
  13. significant. (Default 0.01)}
  14. \item{cp_color}{Character, line color. (Default "red")}
  15. \item{cp_linetype}{Character or integer, line type. (Default "dashed")}
  16. \item{trend}{Logical, if FALSE, do not draw trend line. (Default TRUE)}
  17. \item{...}{Other arguments passed on to layers.}
  18. }
  19. \value{
  20. A list of ggplot2 layers.
  21. }
  22. \description{
  23. Get layers to overlay significant changepoints on prophet forecast plot.
  24. }
  25. \examples{
  26. \dontrun{
  27. plot(m, fcst) + add_changepoints_to_plot(m)
  28. }
  29. }