ForecastingLineChart: Forecasting Line Chart

View source: R/ForecastingLineChart.R

ForecastingLineChartR Documentation

Forecasting Line Chart

Description

A line chart to compare a forecast against historical time series

Usage

ForecastingLineChart(X,Y,F_y,

xlab='Time',y1lab='Test data Y',

y2lab='Forecast F',main='Forecasting Line Chart',

cols=c('black','red'),SaveIt=FALSE)

Arguments

X

[1:n] vector, both lines require the same xvalues, e.g. the time of the time series, POSIXlt or POSIXct or codeas.Date are accepted

Y

[1:n] vector of historical time series, usually test data

F_y

Forecast F

xlab

Optional, string for xlabel

y1lab

Optional, string for first ylabel

y2lab

Optional, string for second ylabel

main

Optional, title of plot

cols

Optional, color of two lines

SaveIt

Optional, default FALSE; TRUE if you want to save plot as html in getwd() directory

Details

enables to visualize to lines in one plot overlaying them using ploty (e.g. two time series with one ranges of values)

Value

plotly object

Author(s)

Michael Thrun

See Also

Adjusted version of DualaxisLinechart

Examples

#ToDo

Mthrun/TSAT documentation built on Feb. 5, 2024, 11:15 p.m.