Skip to content

Commit

Permalink
Update fig_yll.R
Browse files Browse the repository at this point in the history
  • Loading branch information
lucy-gf committed Oct 24, 2024
1 parent 01a6f37 commit 62d9b92
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions inst/analysis/scripts/fig_yll.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,8 @@ int_dt[, averted_yll := i.YLL - YLL]
int_dt[, sim_method := factor(sim_method, levels = names(model_assumption_labels), ordered = TRUE)]
int_dt[, method := factor(method, levels = names(model_assumption_labels), ordered = TRUE)]

# in this model, deaths do not affect dynamics, so the method for aggregating
# death parameter (`method` field) is irrelevant
# choosing to only show results when using the 'paramix' deaths
p <- ggplot(int_dt[sim_method == 'wm_f']) + aes(
# p <- ggplot(int_dt[sim_method == method]) + aes(
x = method, group = intervention,
y = averted_yll/1000, fill = intervention, shape = sim_method
) +
Expand Down

0 comments on commit 62d9b92

Please sign in to comment.