Make head to head CRPS distribution comparison plot for a single location
Source:R/ms_fig3.R
make_fig3_single_loc_comp.Rd
Make head to head CRPS distribution comparison plot for a single location
Usage
make_fig3_single_loc_comp(
scores,
loc_to_plot,
horizons_to_show = c("nowcast", "1 wk", "4 wks", "overall")
)
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
- horizons_to_show
A vector of strings indicating the names of the
horizon
that we want to show on the plot, must be a subset ofnowcast
,1 wk
,2 wks
,3 wks
,4 wks
andoverall