YuLab-SMU / aplot

Decorate a plot with associated information
https://yulab-smu.top/aplot
92 stars 14 forks source link

add grid.draw for gglist to supporting ggsave #26

Closed xiangpin closed 1 year ago

xiangpin commented 1 year ago

Now the ggsave can not save the gglist object.

> f %>% class
[1] "gglist" "list"  
> ggsave('./test.gglist.svg', f, device='svg')
Saving 7 x 7 in image
Error in UseMethod("grid.draw") : 
  "grid.draw"没有适用于"c('gglist', 'list')"目标对象的方法
> 

the pr fixed this issue.