plotVenn: Plot Venn diagram for 2-, 3-, 4- dimensional data.

Description Usage Arguments Details Note Author(s) References Examples

View source: R/plotVenn.R

Description

Plots a 2-, 3-, or 4-dimensional Venn plot depending on the number of input values. The user can specify values, labels for each circle-group and colors. If the vector is of length 3, a 2-d plot is produced. If the vector is of length 7, a 3-d plot is produced. If the vector is length 15, a 4-d plot is produced.

Usage

1

Arguments

x

for a 3-d plot, a numeric vector of length 7, with a permutation of the names c("001","010","011","100","101","110","111").

...

Additional arguments accepted by plotVenn2d, plotVenn3d or plotVenn4d.

Details

The '00', '000', '0000' groups are not plotted, so 'percent' data will not add up to 100 percent on the graph.

Note

It requires package grid to be installed, and can be plotted according to specified grid parameters.

Author(s)

Elliot Noma, Aliona Manvae

References

Original code: http://elliotnoma.wordpress.com/2011/02/09/venn-diagram/

Output file: http://elliotnoma.files.wordpress.com/2011/02/venndiagram.png

Examples

1
2
3
4
5
  y <- c(37,29,6,232,121,77,25)
  names(y) <- c("001","010","011","100","101","110","111")
  labels <- c("A","B","C")
  plot.new()
  plotVenn(y, labels, Colors=rainbow(7))

Example output

Loading required package: grid

colorfulVennPlot documentation built on May 2, 2019, 2:47 p.m.