mvenn: Multiple venn diagram, between all combinations of two list...

View source: R/mvenn.R

mvennR Documentation

Multiple venn diagram, between all combinations of two list elements.

Description

Multiple venn diagram, between all combinations of two list elements. If only one list, all combinations in the list elements, using the function gplots::venn.

Usage

mvenn(x, y, show.plt, ...)

Arguments

x

list

y

list [default = NULL]

show.plt

logical: draw plot or not. [default=F]

...

other gplots::venn options

Examples

## Not run: 
# sample data
set.seed(1)
n <- 3; n_1 <- c(5,6,4); n_2 <- c(4,6,4)
v1 <- setNames(lapply(1:n, function(i){
 sample(LETTERS[1:10], n_1[i])
}), paste0("e",as.character(1:n)) )

v2 <- setNames(lapply(1:n, function(i){
 sample(LETTERS[1:10], n_2[i])
}) , paste0("f",as.character(1:n)))

# venn
mvenn(x = v1, show.plt = T)
mvenn(x = v1, y = v2)

## End(Not run)


shkonishi/rsko documentation built on Feb. 21, 2023, 5:12 a.m.