Learn R Programming

highcharter (version 0.9.4)

hc_add_series.forecast: hc_add_series for forecast objects

Description

hc_add_series for forecast objects

Usage

# S3 method for forecast
hc_add_series(
  hc,
  data,
  addOriginal = FALSE,
  addLevels = TRUE,
  fillOpacity = 0.1,
  name = NULL,
  ...
)

Arguments

hc

A highchart htmlwidget object.

data

A forecast object.

addOriginal

Logical value to add the original series or not.

addLevels

Logical value to show predictions bands.

fillOpacity

The opacity of bands.

name

The name of the series.