I tried to use this model output (filtered to only quantile output type) in plot_step_ahead_model_output(), and I received the following error: Error in x - y : non-numeric argument to binary operator. I traced this back to the step in the function where the interval ribbons are set up (I think the issue was because the function is trying to do something with "0.25" instead of 0.25).
The example hub used in the hubEnsembles vignette/manuscript includes mean, median, quantile, and PMF output types. The PMF output types have
output_type_id = c("large decrease", "decrease", "stable", "increase", "large increase")
, which forces the entireoutput_type_id
column to bechr
. Example hub data: https://github.com/Infectious-Disease-Modeling-Hubs/hubEnsembles/tree/software-manuscript/inst/example-data/example-simple-forecast-hubI tried to use this model output (filtered to only quantile output type) in
plot_step_ahead_model_output()
, and I received the following error:Error in x - y : non-numeric argument to binary operator
. I traced this back to the step in the function where the interval ribbons are set up (I think the issue was because the function is trying to do something with "0.25" instead of 0.25).Reproducible example
This code gives the error.
Adding
dplyr::mutate(output_type_id = as.double(output_type_id))
solves the problem.