Creates a blank 2D venn, searches the intersections and then draws them with the desired shaded areas in a ggplot based venn. The two circles are A, B and C, respectively. ABC is the intersection, ABnoC is the intersection of A and B not overlapping with C, AnoBnoC is the area of A not overlapping with B or C, and so on. It is useful to inidcate that the data from a figure comes from an intersection.

draw_polygon(shape, color = "black", fill = NA)

Arguments

shape

Character of length 1. One of c('L', 'square', 'triangle', 'circle', "diamond", "heart").

color

Character of length 1. Color of the line. Default = "Black".

fill

Character of length 1 or NA. Fill color of the polygon. If NA, the color is transparent. Default = NA.

Author

amitjavilaventura