Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Dec 3, 2024
1 parent b50b995 commit 8bd3efa
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions R/plot.check_distribution.R
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ plot.see_check_distribution <- function(x, size_point = 2, panel = TRUE, ...) {
theme_lucid()

if (panel) {
insight::check_if_installed("patchwork")
return(p1 / (p2 | p3) + patchwork::plot_layout(nrow = 2))
} else {
return(list(p1, p2, p3))
Expand Down Expand Up @@ -183,8 +182,8 @@ plot.see_check_distribution_numeric <- function(x,
theme_lucid()

if (panel) {
p1 / (p2 | p3) + patchwork::plot_layout(nrow = 2L)
return(p1 / (p2 | p3) + patchwork::plot_layout(nrow = 2L))
} else {
list(p1, p2, p3)
return(list(p1, p2, p3))
}
}

0 comments on commit 8bd3efa

Please sign in to comment.