plot_avail_forecasts | R Documentation |
Visualise Where Forecasts Are Available
plot_avail_forecasts(
avail_forecasts,
y = "model",
x = "forecast_date",
make_x_factor = TRUE,
show_numbers = TRUE
)
avail_forecasts |
data.frame with a column called |
y |
character vector of length one that denotes the name of the column to appear on the y-axis of the plot. Default is "model". |
x |
character vector of length one that denotes the name of the column to appear on the x-axis of the plot. Default is "forecast_date". |
make_x_factor |
logical (default is TRUE). Whether or not to convert the variable on the x-axis to a factor. This has an effect e.g. if dates are shown on the x-axis. |
show_numbers |
logical (default is |
ggplot object with a plot of interval coverage
library(ggplot2)
avail_forecasts <- avail_forecasts(
example_quantile, by = c("model", "target_type", "target_end_date")
)
plot_avail_forecasts(
avail_forecasts, x = "target_end_date", show_numbers = FALSE
) +
facet_wrap("target_type")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.