Skip to content

Commit

Permalink
Fixes to plots
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmbaazam committed Dec 11, 2024
1 parent b06c201 commit db4bf80
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions vignettes/benchmarks.Rmd.orig
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ timing_plot <- ggplot(data = runtimes_dt_detailed[, fit_type := ifelse(fitting =
caption = "non-stationary Rt = R(t-1) * GP; stationary Rt = R0 * GP; non-mechanistic Rt = no GP prior."
) +
theme_minimal() +
facet_wrap(~fit_type, scales = "free_y", nrow = 2)
facet_wrap(~fit_type, scales = "free_y", nrow = 2, strip.position = "left")
timing_plot
```

Expand Down Expand Up @@ -705,14 +705,14 @@ Let's first see how the models performed over time for the $R_t$ using the CRPS.
Let's start by looking at the two broad individual model types (stationary vs non-stationary)
```{r rt_ns_gp_plot,class.source = 'fold-hide'}
rt_ns_gp_plot <- ggplot(
data = rt_crps_dt_final[rt_gp_prior == "non_stationary"],
# data = infections_crps_dt_final
data = rt_crps_dt_final[rt_gp_prior == "non_stationary"]
) +
geom_line(
aes(x = date,
aes(x = factor(epidemic_phase, levels = c("growth", "peak", "decline")),
y = crps,
color = model
)
color = model_basename,
linetype = fitting
)
) +
scale_colour_brewer("Model", palette = "Dark2") +
# scale_y_log10(labels = label_number_auto()) +
Expand Down

0 comments on commit db4bf80

Please sign in to comment.