'Venn diagram using eulerr for more than 4 sets -(13 sets)

I'm using eulerr to create a Venn diagram for a large dataframe

this is the code used on https://cran.r-project.org/web/packages/eulerr/vignettes/introduction.html

fit1 <- euler(c("A" = 25, "B" = 5, "C" = 5,
                "A&B" = 5, "A&C" = 5, "B&C" = 3,
                "A&B&C" = 3))

Now my problem is I have hundreds of combinations for 13 columns. 248 to be exact. The solution can't possibly be to type them manually I think...

I managed to build a dataframe of 2 columns containing the themes (A, B, C, A&B, A&C, etc...) and the number of which each of them is repeated (so, 25, 5, 5, etc.) (these are an example from the code snippet above)

col1 col2
A 25
B 5
C 5
A&B 5

This is the first time I'm using R and R studio, so I don't know how to proceed to build the venn diagram for my data and I couldn't really find anything useful on google or youtube

I can use other packages if necessary



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source