Description Usage Arguments Value Examples
View source: R/plot_prediction.R
E.g. plot result for selected split from cv_arima (by ggplot2
)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
data |
data.frame containing "index" (Date), "value" (numeric) and key (character - "actual" and "predict") |
col_date |
Date column in |
col_value |
Value column in |
col_group |
Group column in |
title |
plot title |
size |
line size |
alpha |
line alpha value |
legend |
legend position |
scale |
NULL or two Date values to scale x-axis |
PI |
add prediction interval? |
col_pi_high |
Upper confidence bound in |
col_pi_low |
Lower confidence bound in |
ggplot2 object
1 2 3 4 5 6 7 8 9 10 11 | plot_prediction(
data = tsRNN::fc_arima,
title = "ARIMA Forecast versus actual data"
)
# With Prediction Interval
plot_prediction(
data = tsRNN::fc_arima,
title = "ARIMA Forecast with prediction interval",
PI = TRUE
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.