generateDistinctIntersections: configure the generation of the distinct intersections

View source: R/data.R

generateDistinctIntersectionsR Documentation

configure the generation of the distinct intersections

Description

configure the generation of the distinct intersections

Usage

generateDistinctIntersections(
  upsetjs,
  min = 0,
  max = NULL,
  empty = FALSE,
  order.by = "cardinality",
  limit = NULL,
  colors = NULL
)

Arguments

upsetjs

an object of class upsetjs or upsetjs_proxy

min

minimum number of sets in an intersection

max

maximum number of sets in an intersection

empty

whether to include empty intersections or not

order.by

order intersections by cardinality, degree, name or a combination of it

limit

limit the number of intersections to the top N

colors

the optional list with set name to color

Value

the object given as first argument

Examples

upsetjs() %>%
  fromList(list(a = c(1, 2, 3), b = c(2, 3))) %>%
  generateDistinctIntersections(min = 2)

upsetjs documentation built on July 13, 2022, 9:06 a.m.