# NOT RUN {
example1 <- scoringutils::continuous_example_data
example2 <- scoringutils::range_example_data_long
scoringutils::plot_predictions(example1, x = "value_date",
filter_truth = list('value_date <= "2020-06-22"',
'value_date > "2020-05-01"'),
filter_forecasts = list("model == 'SIRCOVID'",
'creation_date == "2020-06-22"'),
facet_formula = geography ~ value_desc)
scoringutils::plot_predictions(example2, x = "value_date",
filter_truth = list('value_date <= "2020-06-22"',
'value_date > "2020-05-01"'),
filter_forecasts = list("model == 'SIRCOVID'",
'creation_date == "2020-06-22"'),
allow_truth_without_pred = TRUE,
facet_formula = geography ~ value_desc)
# }
Run the code above in your browser using DataLab