2017-02-22 23:59:43 +00:00
|
|
|
% Generated by roxygen2: do not edit by hand
|
2018-06-15 01:42:11 +00:00
|
|
|
% Please edit documentation in R/plot.R
|
2017-02-22 23:59:43 +00:00
|
|
|
\name{prophet_plot_components}
|
|
|
|
|
\alias{prophet_plot_components}
|
|
|
|
|
\title{Plot the components of a prophet forecast.
|
2018-05-15 17:07:38 +00:00
|
|
|
Prints a ggplot2 with whichever are available of: trend, holidays, weekly
|
|
|
|
|
seasonality, yearly seasonality, and additive and multiplicative extra
|
|
|
|
|
regressors.}
|
2017-02-22 23:59:43 +00:00
|
|
|
\usage{
|
2017-04-13 08:51:17 +00:00
|
|
|
prophet_plot_components(m, fcst, uncertainty = TRUE, plot_cap = TRUE,
|
2018-06-01 00:45:44 +00:00
|
|
|
weekly_start = 0, yearly_start = 0, render_plot = TRUE)
|
2017-02-22 23:59:43 +00:00
|
|
|
}
|
|
|
|
|
\arguments{
|
|
|
|
|
\item{m}{Prophet object.}
|
|
|
|
|
|
|
|
|
|
\item{fcst}{Data frame returned by predict(m, df).}
|
|
|
|
|
|
|
|
|
|
\item{uncertainty}{Boolean indicating if the uncertainty interval should be
|
|
|
|
|
plotted for the trend, from fcst columns trend_lower and trend_upper.}
|
2017-04-11 05:48:43 +00:00
|
|
|
|
|
|
|
|
\item{plot_cap}{Boolean indicating if the capacity should be shown in the
|
|
|
|
|
figure, if available.}
|
2017-04-13 08:51:17 +00:00
|
|
|
|
|
|
|
|
\item{weekly_start}{Integer specifying the start day of the weekly
|
|
|
|
|
seasonality plot. 0 (default) starts the week on Sunday. 1 shifts by 1 day
|
|
|
|
|
to Monday, and so on.}
|
2017-04-13 09:08:34 +00:00
|
|
|
|
|
|
|
|
\item{yearly_start}{Integer specifying the start day of the yearly
|
|
|
|
|
seasonality plot. 0 (default) starts the year on Jan 1. 1 shifts by 1 day
|
|
|
|
|
to Jan 2, and so on.}
|
2018-06-01 00:45:44 +00:00
|
|
|
|
|
|
|
|
\item{render_plot}{Boolean indicating if the plots should be rendered.
|
|
|
|
|
Set to FALSE if you want the function to only return the list of panels.}
|
2017-02-22 23:59:43 +00:00
|
|
|
}
|
2017-03-12 15:58:03 +00:00
|
|
|
\value{
|
|
|
|
|
Invisibly return a list containing the plotted ggplot objects
|
|
|
|
|
}
|
2017-02-22 23:59:43 +00:00
|
|
|
\description{
|
|
|
|
|
Plot the components of a prophet forecast.
|
2018-05-15 17:07:38 +00:00
|
|
|
Prints a ggplot2 with whichever are available of: trend, holidays, weekly
|
|
|
|
|
seasonality, yearly seasonality, and additive and multiplicative extra
|
|
|
|
|
regressors.
|
2017-02-22 23:59:43 +00:00
|
|
|
}
|