The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

UpSet.js Combination Modes

Samuel Gratzl

2022-07-12

UpSet.js Combination Modes

library(upsetjs)
library(tibble)
t <- tribble(
  ~set1, ~set2, ~set3,
   1,   1,   0,
   0,   0,   1,
   0,   1,   1,
   0,   0,   1,
   0,   0,   1,
   0,   1,   1,
   1,   0,   1,
   0,   1,   1,
   0,   0,   1,
   0,   0,   1,
   1,   1,   1,
   1,   0,   0,
   0,   0,   1,
   0,   1,   0,
   1,   1,   1,
   0,   1,   0,
   0,   1,   1,
   0,   1,   0,
   0,   0,   1,
   0,   0,   1
)

Intersection Mode

upsetjs() %>%
    fromDataFrame(t) %>%
    generateIntersections()

Union Mode

upsetjs() %>%
    fromDataFrame(t) %>%
    generateUnions()

Distinct Intersection Mode

upsetjs() %>%
    fromDataFrame(t) %>%
    generateDistinctIntersections()

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.