Skip to content

Commit 41769c2

Browse files
committed
Update plot-model-results.R
1 parent bfcafba commit 41769c2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

R/plot-model-results.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,10 @@ plot_models <- function(random_effects, scores, x_labels = TRUE,
6262
return(plot)
6363
}
6464

65-
plot_effects <- function(random_effects) {
65+
plot_effects <- function(random_effects,
66+
variables = c("Method", "CountryTargets")) {
6667
random_effects |>
67-
filter(group_var %in% c("Method", "CountryTargets")) |>
68+
filter(group_var %in% variables) |>
6869
mutate(group = factor(group, levels = unique(as.character(rev(group)))),
6970
Model = factor(model, levels = c("Adjusted", "Unadjusted"))) |>
7071
ggplot(aes(x = group, col = group_var,

0 commit comments

Comments
 (0)