I've been dealing with R recently and I've come across an interesting problem. I have to plot all possible venn diagrams of 9 one-column datasets (let's name them df1...df9). I'm using library(gplots), and the piece of code for venn
with an example input is:
venn(list(df1,df2,df3,df4))
The question is: how can I generate all possible subsets of those nine datasets (there are total of 126 - computed used combs function.), and export them in a list, which could be the inputted into venn. So for example: (df1,df2), (df5,df4), (df3,df5,df8) . . . Here I would iterate through all options and plot the venn diagram for each. Thank you for any hints.