fromExpression | R Documentation |
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" )
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) |
the object given as first argument
upsetjs() %>% fromExpression(list(a = 3, b = 2, `a&b` = 2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.