plotly_fable: Plot forecasts

Description Usage Arguments Value

View source: R/plot_functions.R

Description

Plots combined forecast model and all indivdual models using plotly.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
plotly_fable(
  actuals,
  y,
  combo,
  mods = NULL,
  title = "Combined forecast model",
  xtitle = "Date",
  ytitle = "Number",
  width = 1200,
  height = 400,
  pi = TRUE,
  fc_line = "solid"
)

Arguments

actuals

A tsibble object containing the known, historical, values

y

column containing the historical values

combo

A fable object with the forecast values

mods

An optional fable object with values from individual forecasts

title

A string with the plot title.

xtitle

A string with the x-axis title.

ytitle

A string with the y-axis title.

width

Width in pixels

height

Height in pixels

pi

If TRUE the prediction intervals for all models will be shown.

fc_line

A string which Sets the dash style of the forecast lines. Valid options are: "solid", "dot", "dash", "longdash", "dashdot", or "longdashdot"

Value

A plotly object


bgulbis/fcasthelpr documentation built on Sept. 29, 2020, 11:52 p.m.