File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed
Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ License: MIT + file LICENSE
2020Encoding: UTF-8
2121Imports:
2222 ggplot2 (>= 3.0.0),
23- gtable,
23+ gtable (>= 0.3.6) ,
2424 grid,
2525 stats,
2626 grDevices,
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ S3method("[[<-",patchwork)
99S3method("|",ggplot)
1010S3method(add_patches,ggplot)
1111S3method(add_patches,patchwork)
12+ S3method(as.gtable,patchwork)
1213S3method(as.list,patchwork)
1314S3method(as_patch,formula)
1415S3method(as_patch,gList)
@@ -150,6 +151,7 @@ importFrom(grid,upViewport)
150151importFrom(grid,valid.just)
151152importFrom(grid,viewport)
152153importFrom(grid,widthDetails)
154+ importFrom(gtable,as.gtable)
153155importFrom(gtable,gtable)
154156importFrom(gtable,gtable_add_cols)
155157importFrom(gtable,gtable_add_grob)
Original file line number Diff line number Diff line change @@ -290,6 +290,11 @@ patchworkGrob <- function(x) {
290290 class(gtable ) <- setdiff(class(gtable ), ' gtable_patchwork' )
291291 gtable
292292}
293+
294+ # ' @importFrom gtable as.gtable
295+ # ' @export
296+ as.gtable.patchwork <- function (x , ... ) patchworkGrob(x )
297+
293298plot_table <- function (x , guides ) {
294299 UseMethod(' plot_table' )
295300}
You can’t perform that action at this time.
0 commit comments