Skip to content

Commit 432b03e

Browse files
thomasp85lionel-
authored andcommitted
Add print_plot method for grob
1 parent faf6159 commit 432b03e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

R/svg.R

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ print_plot.ggplot <- function(p, title = "") {
4343
print(p)
4444
}
4545

46+
#' @export
47+
print_plot.grob <- function(p, title) {
48+
grid::grid.draw(p)
49+
}
50+
4651
#' @export
4752
print_plot.recordedplot <- function(p, title) {
4853
grDevices::replayPlot(p)

0 commit comments

Comments
 (0)