Description Usage Arguments Details Value Author(s) References See Also Examples
Generates a prediction-realization diagram showing a scatterplot with forecast vs actual values.
1 2 |
af |
dataframe containing forecast data formatted using the Actual and Forecast Table
Schema (AFTS), use |
useLogs |
if TRUE, uses logarithmic scales. |
xlim |
the minimum and maximum values for x-axis, if NULL, finds min/max values based on the data. |
ylim |
the minimum and maximum values for y-axis, if NULL, finds min/max values based on the data. |
keepRatio |
if TRUE, forces the 1:1 ratio for the graph cells. Default: keepRatio = TRUE |
Generates a prediction-realization diagram for the given dataset. The diagram shows a scatter plot with actuals and forecasts.
Returns a ggplot2 object.
Cuong Sai, Andrey Davydenko, and Maxim Shcherbakov.
Sai, C., Davydenko, A., & Shcherbakov, M. (2018, November). Data schemas for forecasting (with examples in R). Seventh International Conference on System Modelling & Advancement on Research Trends, 145-149. Moradabad, India.
plotFixedOrigin
, plotFan
, plotFixedHorizon
1 2 | af <- createAFTS(example1_ts, example1_fc)
plotPRD(af)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.