Skip to content

Commit 93d304b

Browse files
author
Kaitlyn Johnson
committed
Merge branch 'feature/bias-25A' of https://github.com/epiforecasts/evalvariantnowcasthub into feature/bias-25A
2 parents 736101b + f70e1e8 commit 93d304b

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

R/fig_pred_plus_data.R

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,14 @@ get_plot_model_pred_obs <- function(model_pred_obs_df,
1818
)
1919
}
2020

21-
weekly_obs_data <- daily_to_weekly(eval_seq)
22-
total_seq <- weekly_obs_data |>
21+
total_seq <- eval_seq |>
2322
group_by(date, location) |>
2423
summarise(n_seq = sum(sequences))
25-
weekly_obs <- left_join(weekly_obs_data, total_seq)
24+
obs <- left_join(eval_seq, total_seq)
2625

2726
if (!is.null(clades_to_plot)) {
28-
weekly_obs <- filter(
29-
weekly_obs,
27+
obs <- filter(
28+
obs,
3029
clades_modeled %in% clades_to_plot
3130
)
3231
}
@@ -48,11 +47,11 @@ get_plot_model_pred_obs <- function(model_pred_obs_df,
4847
fill = clade
4948
), alpha = 0.1) +
5049
geom_point(
51-
data = weekly_obs,
50+
data = obs,
5251
aes(
5352
x = date, y = sequences / n_seq,
5453
color = clades_modeled
55-
)
54+
), size = 0.5
5655
) +
5756
facet_grid(rows = vars(model_id), cols = vars(location)) +
5857
get_plot_theme(dates = TRUE) +

0 commit comments

Comments
 (0)