Learn R Programming

prophet (version 0.6.1)

plot_yearly: Plot the yearly component of the forecast.

Description

Plot the yearly component of the forecast.

Usage

plot_yearly(m, uncertainty = TRUE, yearly_start = 0, name = "yearly")

Arguments

m

Prophet model object.

uncertainty

Optional boolean to plot uncertainty intervals, which will only be done if m$uncertainty.samples > 0.

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.

name

Name of seasonality component if previously changed from default 'yearly'.

Value

A ggplot2 plot.