plotPRD: Prediction-Realization Diagram

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/plotPRD.R

Description

Generates a prediction-realization diagram showing a scatterplot with forecast vs actual values.

Usage

1
2
plotPRD(af, useLogs = FALSE, xlim = NULL, ylim = NULL,
  keepRatio = TRUE)

Arguments

af

dataframe containing forecast data formatted using the Actual and Forecast Table Schema (AFTS), use showAFTS() to display schema specification details.

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

Details

Generates a prediction-realization diagram for the given dataset. The diagram shows a scatter plot with actuals and forecasts.

Value

Returns a ggplot2 object.

Author(s)

Cuong Sai, Andrey Davydenko, and Maxim Shcherbakov.

References

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.

See Also

plotFixedOrigin, plotFan, plotFixedHorizon

Examples

1
2

forvis/forvision documentation built on April 30, 2020, 3:28 a.m.