Learn R Programming

upsetjs (version 1.3.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
)

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

Value

the object given as first argument

Examples

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

# }

Run the code above in your browser using DataLab