Skip to content

Commit d6ea33a

Browse files
committed
make output code more readable in tm_g_association
1 parent 4a71d27 commit d6ea33a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

R/tm_g_association.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,8 +502,9 @@ srv_tm_g_association <- function(id,
502502
teal.code::eval_code(
503503
substitute(
504504
expr = {
505-
plot_top <- plot_calls[[1]]
506-
plot_bottom <- plot_calls[[2]]
505+
plots <- plot_calls
506+
plot_top <- plots[[1]]
507+
plot_bottom <- plots[[2]]
507508
plot <- tern::stack_grobs(grobs = lapply(list(plot_top, plot_bottom), ggplot2::ggplotGrob))
508509
},
509510
env = list(

0 commit comments

Comments
 (0)