Skip to contents

Plot koma forecasts

Usage

# S3 method for class 'koma_forecast'
plot(x, y = NULL, ...)

Arguments

x

A koma_forecast object (forecast).

y

Ignored. Included for compatibility with the generic function.

...

Additional parameters:

variables

A vector of variable names to plot.

fig

Optional. A Plotly figure object. Default is NULL.

theme

Optional. A theme for the plot. Default is NULL.

central_tendency

Optional. A string specifying the type of forecast to print. Can be "mean", "median", or a quantile name like "q_5", "q_50", "q_95". Default is "mean" if available, otherwise "median", or a specified quantile.

Value

A Plotly figure object displaying the data.