Skip to content

Commit 60e95d4

Browse files
committed
fix: plot the grob instead of showing it
1 parent 6dfe1f5 commit 60e95d4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

R/tm_g_association.R

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,10 @@ srv_tm_g_association <- function(id,
527527
id = "decorator",
528528
data = output_q,
529529
decorators = select_decorators(decorators, "plot"),
530-
expr = quote(plot)
530+
expr = quote({
531+
grid::grid.newpage()
532+
grid::grid.draw(plot)
533+
})
531534
)
532535

533536
plot_r <- reactive({
@@ -555,5 +558,5 @@ srv_tm_g_association <- function(id,
555558
title = "Association Plot"
556559
)
557560
decorated_output_dims_q
558-
})
561+
})
559562
}

0 commit comments

Comments
 (0)