Learn R Programming

upsetjs (version 1.11.1)

asCombination: creates a new UpSet set combination structure

Description

creates a new UpSet set combination structure

Usage

asCombination(
  name,
  elems = c(),
  type = "intersection",
  sets = strsplit(name, "&"),
  cardinality = length(elems),
  color = NULL
)

Value

the set object

Arguments

name

name of the set combination

elems

the elements of the set combination

type

the set combination type (intersection,distinctIntersection,union,combination)

sets

the sets this combination is part of

cardinality

the cardinality of the set, default to length(elems)

color

the color of the set

Examples

Run this code
asCombination("a", c(1, 2, 3))

Run the code above in your browser using DataLab