Skip to content

Commit 8bd3efa

Browse files
committed
fix
1 parent b50b995 commit 8bd3efa

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

R/plot.check_distribution.R

+2-3
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ plot.see_check_distribution <- function(x, size_point = 2, panel = TRUE, ...) {
108108
theme_lucid()
109109

110110
if (panel) {
111-
insight::check_if_installed("patchwork")
112111
return(p1 / (p2 | p3) + patchwork::plot_layout(nrow = 2))
113112
} else {
114113
return(list(p1, p2, p3))
@@ -183,8 +182,8 @@ plot.see_check_distribution_numeric <- function(x,
183182
theme_lucid()
184183

185184
if (panel) {
186-
p1 / (p2 | p3) + patchwork::plot_layout(nrow = 2L)
185+
return(p1 / (p2 | p3) + patchwork::plot_layout(nrow = 2L))
187186
} else {
188-
list(p1, p2, p3)
187+
return(list(p1, p2, p3))
189188
}
190189
}

0 commit comments

Comments
 (0)