Description Usage Arguments Value Note Examples
View source: R/helper_functions.R
Wrapper for VennDiagram::venn.diagram() function
1 2 | vennDiagram2(input_ls, title = "",
col_palette = RColorBrewer::brewer.pal(9, "Set1"), ...)
|
input_ls |
A list, e.g. input_ls = list(list1 = c("A", "B", "C"), list2= c("A", "B", "D")) |
title |
(str) plot title |
... |
more arguments in VennDiagram::venn.diagram() |
palette |
(list of named colors) default is brewer.pal(8,"Accent") |
a venn diagram
the plot will overlap with the old plot, use graphics.off() to clear old plots not recomended for over 5 lists (very messy with more than 5 lists)
1 2 3 4 5 6 7 | graphics.off()
input_ls = list(list1 = c("A", "B", "C"), list2= c("A", "B", "D"))
pal <- c(list1 = "red", list2 = "blue") ## if the colour is named the same as the list name, the colour will correponding to the specific list
vennDiagram2(input_ls, col_palette=pal)
graphics.off()
vennDiagram2(input_ls)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.