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

Description Usage Arguments Details Note Examples

View source: R/plot_venn.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 plot_venn2d, plot_venn3d or plot_venn4d

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.

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()
plot_venn(y, labels, Colors=rainbow(7))

danielmarcelino/plotVenn documentation built on March 28, 2020, 12:02 a.m.