I got a project which required making venn diagrams, and I am starting to learn python (using 2.7) so I figured trying to learn R as well would overload me with work. So, I learned online about matplotlib. Basically, what I need to do is create a venn diagram which compares the value under every column to generate a venn diagram. So if my csv had the following data:
Month x y
Sept -1 1
Oct 0 1
Nov 1 1
Dec -1 -1
The overlap would show a value of 2 (because nov and dec have the same value), the x circle by itself would show a value of 1, from sept (the 0 needs to be ignored), and the y circle would show a value of 2, from sept and oct.
I think this is a pretty complicated program, but I have no idea where to start, other than just starting with:
from matplotlib_venn import venn2
When I use an online tool such as Venny, it just finds the numbers that are similar between the lists instead of doing a row-by-row comparison. This results in nothing in values of 0 in the outer circles, and the number 3 in the overlap (because there are three different values in the input: -1, 0, and 1.
Alternatively, if this would instead be very easy using R instead of Python, could you help me with that?
Any help would be appreciated, thanks!
In R there are many options to build venn diagram. You can get some of them
For example using
VennDiagram
(the first in the list) you can get this graph. I used random values to generate it since it is not very clear how do you consider shared and intersection regions in your question.