Learn R Programming

ankiR (version 0.6.0)

anki_plot_monte_carlo: Plot Monte Carlo Forecast

Description

Visualize Monte Carlo forecast with confidence bands.

Usage

anki_plot_monte_carlo(
  mc_forecast,
  show_bands = c("95", "80"),
  show_simulations = 20,
  cumulative = FALSE
)

Value

A ggplot2 object

Arguments

mc_forecast

Output from anki_forecast_monte_carlo()

show_bands

Confidence bands to show: "95", "80", "50", or combinations

show_simulations

Number of individual simulations to overlay (0 for none)

cumulative

Plot cumulative reviews instead of daily

Examples

Run this code
if (FALSE) {
mc <- anki_forecast_monte_carlo(days_ahead = 30)
anki_plot_monte_carlo(mc)
anki_plot_monte_carlo(mc, cumulative = TRUE)
}

Run the code above in your browser using DataLab