Skip to content

Commit

Permalink
Fix #125
Browse files Browse the repository at this point in the history
  • Loading branch information
hanneoberman committed Oct 4, 2023
1 parent 2bce810 commit d2768f2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions R/plot_pred.R
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ plot_pred <-
ind = matrix(data, nrow = p * p, byrow = TRUE)
) %>% dplyr::mutate(clr = factor(
.data$ind,
levels = c(-2, 0, 1, 2, 3),
levels = c(-3, -2, 0, 1, 2),
labels = c(
"inclusion-restriction variable",
"cluster variable",
"not used",
"predictor",
"random effect",
"inclusion-restriction variable"
"random effect"
),
ordered = TRUE
))
Expand All @@ -78,11 +78,11 @@ plot_pred <-
) +
ggplot2::scale_fill_manual(
values = c(
"inclusion-restriction variable" = "orangered",
"cluster variable" = "lightyellow",
"not used" = "grey90",
"predictor" = "palegreen3",
"random effect" = "deepskyblue",
"inclusion-restriction variable" = "orangered"
"random effect" = "deepskyblue"
)
) +
ggplot2::labs(
Expand Down

0 comments on commit d2768f2

Please sign in to comment.