Skip to content

Commit

Permalink
Pass range to sample_to_range_long()
Browse files Browse the repository at this point in the history
Fix #151
  • Loading branch information
Bisaloo committed Nov 23, 2021
1 parent 07b40d0 commit 57d58ed
Show file tree
Hide file tree
Showing 5 changed files with 3,134 additions and 3 deletions.
1 change: 1 addition & 0 deletions R/plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,7 @@ plot_predictions <- function(data = NULL,
colnames <- colnames(forecasts)
if ("sample" %in% colnames) {
forecasts <- scoringutils::sample_to_range_long(forecasts,
range = range,
keep_quantile_col = FALSE)
} else if ("quantile" %in% colnames) {
forecasts <- scoringutils::quantile_to_range_long(forecasts,
Expand Down
Loading

0 comments on commit 57d58ed

Please sign in to comment.