counts2setlist | R Documentation |
venndir conversion from overlap counts to setlist
counts2setlist(x, sep = "&", ...)
This function takes input in the form of named vector
with overlap counts, which is the input to similar Venn
functions in eulerr::euler()
, and is called "expressionInput"
when used with upsetr::fromExpression()
.
list
where the list names are the names of each set,
and values of each list element is a vector of items.
The items are artificial labels used for convenience.
Other venndir conversion:
im2list()
,
im_value2list()
,
list2im_opt()
,
list2im_value()
,
overlaplist2setlist()
,
signed_counts2setlist()
# example from eulerr::euler()
combo <- c(A = 2,
B = 2,
C = 2,
"A&B" = 2,
"A&C" = 1,
"B&C" = 1,
"A&B&C" = 4)
setlist <- counts2setlist(combo)
setlist;
# Venn diagram
venndir(setlist)
# Proportional Venn (Euler) diagram
venndir(setlist, proportional=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.