View source: R/plot_coverage.R
Plot interval coverage
1 2 3 4 5 6 7 8 9 10 11 | plot_coverage(
predictions_cards,
type = c("all", "one"),
coverage = 0.8,
facet_rows = c("forecaster"),
facet_cols = c("forecast_date"),
grp_vars = c("forecaster", "forecast_date", "ahead"),
avg_vars = c("geo_value"),
geo_type = c("county", "hrr", "msa", "dma", "state", "hhs", "nation"),
backfill_buffer = 0
)
|
predictions_cards |
tibble of predictions
that are all for the same prediction task, meaning they are for the same
response, incidence period,and geo type. Forecasts may be for a
different forecast date or forecaster.
A predictions card may be created by the function
|
type |
One of "all" or "one", indicating whether to show coverage
across all nominal levels (in which case averaging is performed across
|
coverage |
If |
facet_rows |
A variable name to facet data over. Creates a
separate row of plots for each value of specified variable. Can be used
with |
facet_cols |
Same as |
grp_vars |
variables over which to compare coverage |
avg_vars |
variables over which we average to determine the proportion of coverage. |
geo_type |
String indicating geographical type, such as "county", or "state". See the COVIDcast Geographic Coding documentation for available options. |
backfill_buffer |
How many days until response is deemed trustworthy enough to be taken as correct? |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.