patchwork icon indicating copy to clipboard operation
patchwork copied to clipboard

save patchwork list in pdf doesn´t work

Open LuisCanoA opened this issue 3 years ago • 0 comments

Hi

I've created a list of 13 elements like this:

Captura de Pantalla 2022-07-12 a la(s) 3 52 46 p  m

Each element in my list is a "composed" plot (as the image) created with 2 ggplots, (right and left). I've merged both plots using patchwork.

Now, I would like to save this list of 13 patchwork-ggplots elements in one pdf using each "composed" plot in a page. However I can't do it. I used ggsave to save the whole list as an element but i received the next error: Saving 12.9 x 11.2 in image Error in UseMethod("grid.draw") : no applicable method for 'grid.draw' applied to an object of class "list"

When I check the structure (str) of my list I found this:

List of 13 (I'm showing just the first element) b_cell_naive :A patchwork composed of 2 patches - Autotagging is turned off - Guides are collected Layout: 2 patch areas, spanning 2 columns and 1 rows t l b r 1: 1 1 1 1 2: 1 2 1 2

Someone could help me to save my plot list please. In attach the list file in Rdata format Thank you so much for your help

tempx.Rdata.zip

LuisCanoA avatar Jul 12 '22 20:07 LuisCanoA