A 'ggplot2' Implement of Venn Diagram
All members of a list have the same elements
all possible combinations of n sets
Calculate region of sets
Set difference.
Specifying a shape
get applicable shape data for Venn object
Get all shapes
ggVennDiagram main parser
Launch Reactor Data Shiny App
Intersection of many sets.
Plot the set edge of a VennPlotData
plot all shapes provided by internal dataset
plot codes
join the shape data with set data
S3 method for upsetPlotData
get plot data
process upset data
Implement of tidyr::separate_longer_delim
shapes: shape data used to setup Venn plot
check and format slice name
Union of many sets.
Plot a upset plot
Prepare Venn data
Get VennPlotData slot
Venn is a S4 class to represent multiple sets.
An S3 class constructor of representing Venn plot components.
Import venn shape coordinates
Easy-to-use functions to generate 2-7 sets Venn or upset plot in publication quality. 'ggVennDiagram' plot Venn or upset using well-defined geometry dataset and 'ggplot2'. The shapes of 2-4 sets Venn use circles and ellipses, while the shapes of 4-7 sets Venn use irregular polygons (4 has both forms), which are developed and imported from another package 'venn', authored by Adrian Dusa. We provided internal functions to integrate shape data with user provided sets data, and calculated the geometry of every regions/intersections of them, then separately plot Venn in four components, set edges/labels, and region edges/labels. From version 1.0, it is possible to customize these components as you demand in ordinary 'ggplot2' grammar. From version 1.4.4, it supports unlimited number of sets, as it can draw a plain upset plot automatically when number of sets is more than 7.