Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plot_predictions() returns NULL when no CI is provided #150

Closed
Bisaloo opened this issue Nov 22, 2021 · 0 comments
Closed

plot_predictions() returns NULL when no CI is provided #150

Bisaloo opened this issue Nov 22, 2021 · 0 comments

Comments

@Bisaloo
Copy link
Member

Bisaloo commented Nov 22, 2021

example2 <- scoringutils::range_example_data_long

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)

example3 <- example2[example2$range == 0, ]
scoringutils::plot_predictions(example3, 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)
#> NULL

Created on 2021-11-22 by the reprex package (v2.0.1.9000)

In the second example, I would expect a plot without intervals but still a plot. This is a problem in the hub for forecasts that only provide point predictions.

Bisaloo added a commit that referenced this issue Nov 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant