A 'ggplot2' Implement of Venn Diagram
Overview
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.
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-07
- OK12 OK2026-04-25
Show 3 earlier changesHide 3 earlier changes
- NOTE11 OK, 3 NOTE2026-03-30
- ERROR10 OK, 3 NOTE, 1 ERROR2026-03-28
- NOTE11 OK, 3 NOTE2026-03-10
Documentation
- Help pages
- 27
- Examples that run
- 93%14 run in a plain check · 1 never run
- Exported functions with examples
- 80%
- Documented parameters
- 98%
- Return-value docs
- 80%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 83%
- Median days to close, 50 most recently updated closed issues
- 7
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
8 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/gaospecial/ggvenndiagram on 2026-10-11.
GitHub Pages site last deployed 2026-01-11 · The repository has a site deploy workflow
pkgdown site last built 2026-01-11
Show all practicesHide 1 practice
Dependencies
Installing ggVennDiagram adds 37 packages (16 with compiled code, 23 MB of source tarballs). Heaviest: ggplot2 6.0 MB, patchwork 3.2 MB, isoband 1.5 MB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 1.5.7Latest
- 1.5.42025-06-21 · diff ↗
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 1.5.22024-02-20 · diff ↗
- 1.5.02024-01-13 · diff ↗
- 1.4.92023-12-22 · diff ↗ ·
removed 17 exports
%>%, Polygon, build_shape, circle, ellipse, fancy_2d_circle, fancy_2d_circle_label, fancy_3d_circle, fancy_3d_circle_label, fancy_4d_ellipse, fancy_4d_ellipse_label, fancy_6d_triangle, fancy_6d_triangle_label, label_position, process_setEdge_data, process_setLabel_data, triangleadded 9 exports
get_shape_by_id, get_shapes, launch_app, plot_shape_edge, plot_upset, process_set_data, venn_regionedge, venn_regionlabel, venn_set - 1.2.32023-08-14 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 1.2.22022-09-08 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 1.2.02021-10-22 · diff ↗
- 1.1.42021-07-07 · diff ↗ ·
added 11 exports
build_shape, fancy_2d_circle, fancy_2d_circle_label, fancy_3d_circle, fancy_3d_circle_label, fancy_4d_ellipse, fancy_4d_ellipse_label, fancy_6d_triangle, fancy_6d_triangle_label, label_position, plotData_add_venn - RR 4.1.0 released · 2021-05-18
- 1.1.0
Show 5 earlier eventsHide 5 earlier events
- 1.0.72021-04-28 · diff ↗ ·
removed 4 exports
four_dimension_ellipse_regions, get_region_items, three_dimension_circle_regions, two_dimension_circle_regionsadded 16 exports
%>%, Polygon, Venn, circle, discern_overlap, ellipse, get_shape_data, plot_shapes, process_data, process_region_data, process_setEdge_data, process_setLabel_data, triangle, venn_region, venn_setedge, venn_setlabel - 0.5.02021-02-28 · diff ↗ ·
added 4 exports
four_dimension_ellipse_regions, get_region_items, three_dimension_circle_regions, two_dimension_circle_regions - RR 4.0.0 released · 2020-04-24
- 0.32019-10-09
- RR 3.6.0 released · 2019-04-26
Package metadata
- First published
- 2019-10-09
- Total releases
- 13 / 7 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 4.1.0
- Download size
- 4.8 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("ggVennDiagram")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-17, which the citation names so these numbers can be found later. More on citing and the projects behind them.