powered by
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" )
the object given as first argument
an object of class upsetjs or upsetjs_proxy
upsetjs
upsetjs_proxy
the expression list input
the symbol how to split list names to get the sets
order intersections by cardinality or name
the optional list with set name to color
the type of intersections this data represents (intersection,union,distinctIntersection)
upsetjs() %>% fromExpression(list(a = 3, b = 2, `a&b` = 2))
Run the code above in your browser using DataLab