I'm trying to join many upset plots in only one image in r, I can generate the plots individually but when I use grid.arrange (from gridExtra) to join them like this:
grid.arrange(plot1, plot2)
it gives this error:
Error in gList(...): only 'grobs' allowed in 'gList'
I think this is happening because the plot is an 'upset' class, I tried to transform them into a ggplot using ggplotGrob() but it gives:
Error in UseMethod("ggplot_build"): no applicable method for 'ggplot_build' applied to an object of class upset"
No comments:
Post a Comment
Thanks