Package: ggVennDiagram 1.5.2

ggVennDiagram: A 'ggplot2' Implement of Venn Diagram

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.

Authors:Chun-Hui Gao [aut, cre], Guangchuang Yu [ctb], Adrian Dusa [aut, cph], Turgut Yigit Akyol [ctb]

ggVennDiagram_1.5.2.tar.gz
ggVennDiagram_1.5.2.zip(r-4.5)ggVennDiagram_1.5.2.zip(r-4.4)ggVennDiagram_1.5.2.zip(r-4.3)
ggVennDiagram_1.5.2.tgz(r-4.4-any)ggVennDiagram_1.5.2.tgz(r-4.3-any)
ggVennDiagram_1.5.2.tar.gz(r-4.5-noble)ggVennDiagram_1.5.2.tar.gz(r-4.4-noble)
ggVennDiagram_1.5.2.tgz(r-4.4-emscripten)ggVennDiagram_1.5.2.tgz(r-4.3-emscripten)
ggVennDiagram.pdf |ggVennDiagram.html
ggVennDiagram/json (API)
NEWS

# Install 'ggVennDiagram' in R:
install.packages('ggVennDiagram', repos = c('https://gaospecial.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/gaospecial/ggvenndiagram/issues

On CRAN:

set-operationsupsetupsetplotvenn-diagramvenn-plot

25 exports 277 stars 6.40 score 42 dependencies 3 dependents 8 mentions 868 scripts 4.0k downloads

Last updated 18 days agofrom:e2d39f7b7e. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKAug 30 2024
R-4.5-winOKAug 30 2024
R-4.5-linuxOKAug 30 2024
R-4.4-winOKAug 30 2024
R-4.4-macOKAug 30 2024
R-4.3-winOKAug 30 2024
R-4.3-macOKAug 30 2024

Exports:discerndiscern_overlapget_shape_by_idget_shape_dataget_shapesggVennDiagramlaunch_appoverlapplot_shape_edgeplot_shapesplot_upsetplot_vennplotData_add_vennprocess_dataprocess_region_dataprocess_set_datashowuniteVennvenn_regionvenn_regionedgevenn_regionlabelvenn_setvenn_setedgevenn_setlabel

Dependencies:admiscaplotclicolorspacedigestdplyrfansifarverforcatsfsgenericsggfunggplot2ggplotifygluegridGraphicsgtableisobandlabelinglatticelifecyclemagrittrMASSMatrixmgcvmunsellnlmepatchworkpillarpkgconfigR6RColorBrewerrlangscalestibbletidyselectutf8vctrsvennviridisLitewithryulab.utils

Fully Customed Venn Diagram

Rendered fromfully-customed.Rmdusingknitr::rmarkdownon Aug 30 2024.

Last update: 2024-01-05
Started: 2021-07-01

Tutorial: Using ggVennDiagram

Rendered fromusing-ggVennDiagram.Rmdusingknitr::rmarkdownon Aug 30 2024.

Last update: 2023-12-26
Started: 2021-05-17

Using New Shapes in Venn Diagram

Rendered fromusing-new-shapes.Rmdusingknitr::rmarkdownon Aug 30 2024.

Last update: 2024-01-08
Started: 2021-07-01

Venn Calculator

Rendered fromVennCalculator.Rmdusingknitr::rmarkdownon Aug 30 2024.

Last update: 2024-01-21
Started: 2024-01-21

Readme and manuals

Help Manual

Help pageTopics
All members of a list have the same elementsall_identical
all possible combinations of n setscombinations
Set difference.discern discern,Venn-method
Calculate region of setsdiscern_overlap discern_overlap,Venn-method
Specifying a shapeget_shape_by_id
get applicable shape data for Venn objectget_shape_data
Get all shapesget_shapes
ggVennDiagram main parserggVennDiagram
Launch Reactor Data Shiny Applaunch_app
Intersection of many sets.overlap overlap,Venn-method
Plot the set edge of a VennPlotDataplot_shape_edge
plot all shapes provided by internal datasetplot_shapes
plot codesplot_venn
join the shape data with set dataplotData_add_venn
S3 method for 'upsetPlotData'print print.upsetPlotData print.VennPlotData
get plot dataprocess_data process_data,Venn-method
process upset dataprocess_upset_data
Implement of 'tidyr::separate_longer_delim'separate_longer_delim
shapes: shape data used to setup Venn plotshapes
check and format slice nameslice_idx
Union of many sets.unite unite,Venn-method
Plot a upset plotplot_upset upset-plot
Prepare Venn dataprocess_region_data process_set_data venn_data
Get VennPlotData slotvenn_plot_data venn_region venn_regionedge venn_regionlabel venn_set venn_setedge venn_setlabel
_'Venn'_ is a S4 class to represent multiple sets.show,Venn-method Venn Venn,ANY-method Venn-class
An S3 class constructor of representing Venn plot components.VennPlotData
Import venn shape coordinatesvensets