fromExpression {upsetjs} | R Documentation |
generates the sets from a lists object that contained the cardinalities of both sets and combinations (&)
Description
generates the sets from a lists object that contained the cardinalities of both sets and combinations (&)
Usage
fromExpression(
upsetjs,
value,
symbol = "&",
order.by = "cardinality",
colors = NULL,
type = "intersection"
)
Arguments
upsetjs |
an object of class |
value |
the expression list input |
symbol |
the symbol how to split list names to get the sets |
order.by |
order intersections by cardinality or name |
colors |
the optional list with set name to color |
type |
the type of intersections this data represents (intersection,union,distinctIntersection) |
Value
the object given as first argument
Examples
upsetjs() %>% fromExpression(list(a = 3, b = 2, `a&b` = 2))
[Package upsetjs version 1.11.1 Index]