mvenn | R Documentation |
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.
mvenn(x, y, show.plt, ...)
x |
list |
y |
list [default = NULL] |
show.plt |
logical: draw plot or not. [default=F] |
... |
other gplots::venn options |
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.