generates the sets from a lists object that contained the cardinalities of both sets and combinations (&)

fromExpression(
  upsetjs,
  value,
  symbol = "&",
  order.by = "cardinality",
  colors = NULL,
  type = "intersection"
)

Arguments

upsetjs

an object of class upsetjs or upsetjs_proxy

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))