venndetail {VennDetail} | R Documentation |
Extracts shared and unique elements from groups provided to the function.This base function will create a formal class venn object and can also graphically plot the amount of objects in each group. The plot will be in the form of a traditional venn diagram as default.And users can also use vennpie or upset methods to display the result.
venndetail(x, sep = "_", abbr = FALSE, minlength = 3, abbr.method = "both side")
x |
A list of variables with group names. |
sep |
symbol character used when concatenating group names into subset names (default: ‘_’). |
abbr |
Boolean indicating whether to abbreviate subset names (default: FALSE). |
minlength |
Minmal length for the subset name. |
abbr.method |
a character string specifying the method used. Partial matches allowed. (default: both side). |
Extract shared and unique subsets
venn object and figures
Kai Guo
A <- sample(1:100, 40, replace = FALSE) B <- sample(1:100, 60, replace = FALSE) C <- sample(1:100, 40, replace = FALSE) res <- venndetail(list(A = A, B = B, C = C))