Learn R Programming

upsetjs (version 1.11.1)

fromExpression: 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"
)

Value

the object given as first argument

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)

Examples

Run this code
upsetjs() %>% fromExpression(list(a = 3, b = 2, `a&b` = 2))

Run the code above in your browser using DataLab