Skip to content

Commit 61ab554

Browse files
committed
replace grob with grid output
1 parent 334509b commit 61ab554

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

R/tm_g_association.R

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ srv_tm_g_association <- function(id,
347347
)
348348

349349
qenv <- reactive(
350-
teal.code::eval_code(data(), 'library("ggplot2");library("dplyr");library("tern");library("ggmosaic")') # nolint quotes
350+
teal.code::eval_code(data(), 'library("ggplot2");library("dplyr");library("ggmosaic")') # nolint quotes
351351
)
352352
anl_merged_q <- reactive({
353353
req(anl_merged_input())
@@ -506,9 +506,7 @@ srv_tm_g_association <- function(id,
506506
substitute(
507507
expr = {
508508
plots <- plot_calls
509-
plot_top <- plots[[1]]
510-
plot_bottom <- plots[[2]]
511-
plot <- tern::stack_grobs(grobs = lapply(list(plot_top, plot_bottom), ggplot2::ggplotGrob))
509+
plot <- grid.arrange(plots[[1]], plots[[2]], ncol = 1)
512510
},
513511
env = list(
514512
plot_calls = do.call(

0 commit comments

Comments
 (0)