Make CRPS underlay figure
Usage
plot_crps_underlay(
scores,
loc_to_plot,
horizon_to_plot,
horizon_days_ahead,
days_to_shift = 0
)Arguments
- scores
A tibble of scores by location, forecast date, date and model, containing the outputs of
scoringutils::score()on samples plus metadata transformed into a tibble.- loc_to_plot
A string indicating the state abbreviations of the state to plot
- horizon_to_plot
A string indicating what horizon period to plot, one of
nowcast,1 wk, or4 wks- horizon_days_ahead
An integer corresponding to the horizon days to plot
- days_to_shift
An integer corresponding to the number of days to shift the x axis of the underly plot to line up with the corresponding forecast horizon, default is 0