View source: R/ForecastingLineChart.R
ForecastingLineChart | R Documentation |
A line chart to compare a forecast against historical time series
ForecastingLineChart(X,Y,F_y,
xlab='Time',y1lab='Test data Y',
y2lab='Forecast F',main='Forecasting Line Chart',
cols=c('black','red'),SaveIt=FALSE)
X |
[1:n] vector, both lines require the same xvalues, e.g. the time of the time series, |
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 |
enables to visualize to lines in one plot overlaying them using ploty (e.g. two time series with one ranges of values)
plotly
object
Michael Thrun
Adjusted version of DualaxisLinechart
#ToDo
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.