Generate High-Resolution Venn and Euler Plots

A set of functions to generate high-resolution Venn and Euler plots. Includes handling for several special cases, including two-case scaling, and extensive customization of plot shape and structure.


News

VennDiagram 1.6.19 2017-02-16 (Jeffrey Green)

MINOR UPDATES

  • fixed bug with stop always executing when cex.prop is set

VennDiagram 1.6.18 2017-11-20 (Jeffrey Green)

MINOR UPDATES

  • fixed issues with calculate.overlap where doing -which with an empty charcter vector gave wrong results
  • fixed colour/border mismatch in quad venn

VennDiagram 1.6.17 2016-04-16 (Christopher Lalansingh)

MINOR UPDATES

  • Updated tests for compatibility with testthat v1.0
  • Exposed the lower.tail argument of the hypergeometric test in the venn.diagram function (still defaults to TRUE)

VennDiagram 1.6.16 2015-09-09 (Christopher Lalansingh)

MINOR UPDATES

  • Changed the appended datetime string for log files to substitute spaces and colons correctly.

VennDiagram 1.6.15 2015-08-25 (Christopher Lalansingh)

MINOR UPDATES

  • Changed import calls to fix undefined globals due to new CRAN policies.

VennDiagram 1.6.14 2015-05-27 (David Wang)

MINOR UPDATES

  • Added futile logger support. Currently outputs logs to console (using root logger). Replaced print()'s with flog.info and appended flog.error after the stop()'s.
  • By default outputs to file if you access it through the venn.diagram function
  • Also logs the arguments used in the venn.diagram call

VennDiagram 1.6.13 2015-05-27 (David Wang)

MINOR UPDATES

  • Can print two fields for each bin. print.mode = c("raw","percent") prints the percent in brackets underneath the raw value. c("percent","raw") makes it print the raw number in brackets underneath the percent.
  • Can specify the number of significant digits in the percent by field sigdigs. Default is 3
  • Can enter area fields directly for the three, four and five category venn diagrams. Need to know which areas correspond to what in order to use this.
  • Added Richard Cotton's code for creating in text a table of the partitions of the Venn Diagram. Useful for viewing and obtaining the area of each piece for evaluation before creating the Venn Diagram. Can be useful in its own right to get the area of each partition.

VennDiagram 1.6.12 2015-05-22 (David Wang)

MINOR UPDATES

  • Refactored the 19 three categroy special case drawing functions into 2 functions (in two files)
  • Streamlined rotate.sp.R file.

VennDiagram 1.6.11 2015-05-08 (David Wang)

MINOR UPDATES

  • Fixed bug with draw.121AO.R. Need to try both forward and reverse rotations.
  • Added optional parameter field "percents" which defaults to FALSE. Prints percent of total area with 4 significant digits

VennDiagram 1.6.11 2015-01-02 (Warren W. Kretzschmar)

MINOR UPDATES

  • Added cex.prop argument which can be a function or string used to scale the areas of the groups and labels in the diagram

VennDiagram 1.6.10 2015-01-02 (vsabelnykova)

MINOR UPDATES

  • If filename = FALSE, then returns a list called overlap, which contains the user provided elements but split by areas in Venn diagram and the gList (graphics list) which can then be plotted separately.

VennDiagram 1.6.9 2014-09-24 (clalansingh)

BUG FIXES

  • correctly handles a corner case of pairwise venn diagrams where only the values and labels are specified

VennDiagram 1.6.8 2014-09-11 (clalansingh)

BUG FIXES

  • correctly handle inversions of pairwise venn diagrams with correct labelling and positioning of ellipses

VennDiagram 1.6.7 2014-06-25 (rsun)

BUG FIXES

  • correctly handle NULLs passed to draw.pairwise.venn (either directly or through venn.diagram)

VennDiagram 1.6.6 2013-09-05 (malbuquerque)

MINOR UPDATES

  • new argument added, 'imagetype', which allows for the specification of the image format (tiff, png or svg)

VennDiagram 1.6.5 2013-08-21 (pboutros)

BUG FIXES

  • element a7 not updated after rotations in all special-case ternary drawing functions

VennDiagram 1.6.4 2013-07-10 (pboutros)

MINOR UPDATES

  • reduce line-widths of documentation to 90 characters to meet a new CRAN policy (NOT enforced in R v3.0.1, only in R-patched)
  • made even more examples \dontrun{} to accommodate CRAN requests

VennDiagram 1.6.3 2013-07-05 (pboutros)

MINOR UPDATES

  • bug-fix in draw.010 that was not updating empty overlap regions properly after rotation

VennDiagram 1.6.1 2013-05-20 (jhawley)

MINOR UPDATES

  • Triple, Quadruple, and Quintuple plots now notify what areas are negative
  • bug-fix in draw.022AA00 that was preventing properly scaled diagrams

VennDiagram 1.6.0 2013-04-12 (jhawley)

MINOR UPDATES

  • Removed 'list.order' as an argument for draw.triple.venn and implicitly mapped ordering for triple and double plots
  • Argument ordering no longer matches by sample size, but by order of lists (i-th data elements match with i-th elements in other arguments)
  • Added NEWS file to detail updates and fixes
  • Changed 'force.unique' to default to TRUE
  • circle.R is deprecated because of redundancies (using ellipse.R instead)
  • Created and updated documentation for draw.* functions

BUG FIXES

  • Fixed ordering and rotation of labels and colours in double and triple Euler plots
  • Fixed 'NaN error' within find.dist.R
  • Changed output of rotate.sp from a two-element list to a four-element list for easier access to rotated vectors
  • Updated documentation to clarify code

VennDiagram 1.5.4 2013-02-14

MINOR UPDATES

  • Added OICR header notification to all R files
  • Looks for Darwin-based machines and uses bitmapType=quartz instead of the default cairo

VennDiagram 1.5.3 2013-01-03

MINOR UPDATES

  • Added 'inverted' command line parameter and removed it from parameter list (passed as one of 'Details Arguments')
  • Removed references to obsolete variable sp.cases from examples (old code still works silently)

VennDiagram 1.5.1 2012-09-02

MINOR UPDATES

  • Added 'force.unique' argument to venn.diagram to only look at unique elements in list elements (defaults to FALSE)
  • Added examples in \dontrun{} to accommodate CRAN request
  • Code clean-up for clarity, efficiency, and consistency

VennDiagram 1.4.0 2012-08-08

MAJOR UPDATES

  • Able to create quintuple Venn diagrams (very similar to quadruple diagrams; accessible through venn.diagram and draw.quintuple.venn)

MINOR UPDATES

  • 'ext.percent' in draw.pairwise.venn now allows for individual manipulation of proportions

VennDiagram 1.3.0 2012-07-03

MINOR UPDATES

  • Added 'ext.percent' argument in draw.pairwise.venn to allow user-specified proportion under which to trigger external text drawing

VennDiagram 1.2.2 2012-06-18

BUG FIXES

  • Fixed NA and error handling

VennDiagram 1.2.0 2012-04-29

MINOR UPDATES

  • Enabled draw.pairwise to work with expressions
  • Documented how to output to screen and updated additional documentation

BUG FIXES

  • Fixed an antialiasing issue
  • Fixed some special case issues

VennDiagram 1.1.0 2011-09-28

MINOR UPDATES

  • Ability to have separate category names

VennDiagram 1.0.2 2011-05-15

MINOR UPDATES

  • Ability to use expression values in titles

VennDiagram 1.0.1 2011-04-18

MINOR UPDATES

  • Added 'offset' argument to some three-set Euler diagrams
  • Enabled drawing of title and subtitles
  • Minor updates to draw.special.case functions
  • Minor changes to how 'cat.just' format is correctly determined
  • Added ovverrideTriple arguent for specific scaling in triple diagrams

VennDiagram 1.0.0 2010-06-28

MAJOR UPDATES

  • Initial release of code, based off of lattice
  • Displays single, double, triple, and quadruple Venn and Euler diagrams
  • Flexibility of fonts, colours, spacing, and borders

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("VennDiagram")

1.6.20 by Paul Boutros, a year ago


Browse source code at https://github.com/cran/VennDiagram


Authors: Hanbo Chen


Documentation:   PDF Manual  


GPL-2 license


Depends on grid, futile.logger

Suggests testthat


Imported by PATHChange, RAM, SubgrPlots, TTCA, bedr, cRegulome, caRpools, genBaRcode, genBart, steemr, veccompare, vennLasso, vmsbase.

Depended on by dhga, iDOS.

Suggested by metaMA, metaRNASeq, multipanelfigure.


See at CRAN