Skip to content

Commit

Permalink
group by .imp if group=NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
pepijnvink committed Dec 14, 2023
1 parent 6a69f13 commit 3de3086
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/ggmice.R
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ ggmice <- function(data = NULL,
)
mice_mapping <-
utils::modifyList(mapping, ggplot2::aes(colour = .where))
if (is.null(mapping$group)) {
mice_mapping <-
utils::modifyList(mice_mapping, ggplot2::aes(group = .imp))
}
mice_colors <-
c("observed" = "#006CC2B3",
"imputed" = "#B61A51B3")
Expand Down

0 comments on commit 3de3086

Please sign in to comment.