Plot predictions along with truth
plot_trajectory( predictions_cards, geo_type = c("county", "hrr", "msa", "dma", "state", "hhs", "nation"), intervals = c(0.5, 0.8, 0.95), plot_it = TRUE, show_geo_value = NULL, show_forecaster = NULL, side_truth = NULL, show_points = TRUE, show_quantiles = TRUE, nrow = NULL, ncol = NULL, ... )
predictions_cards | long data frame of forecasts with a class of
|
---|---|
geo_type | String indicating geographical type, such as "county", or "state". See the COVIDcast Geographic Coding documentation for available options. |
intervals | vector of confidence intervals to show. More than 3 is ugly and will be reduced to the default set. |
plot_it | should we actually produce the figure. If you have many geo_values or forecasters, best not to. Then you can assign the output to an object and facet or apply aesthetic specifications to meet your own standards. |
show_geo_value | a subset of |
show_forecaster | a subset of |
side_truth | optional. Use your own truth data rather than downloading
with |
show_points | do you want points as well as lines |
show_quantiles | do you want to plot the quantiles or just lines |
nrow | the number of rows present in the output plot. Similarly, |
ncol | See |
... | additional arguments passed to |
invisibly returns a ggplot object