Welcome to ClientVPS Mirrors

UpSet.js Combination Modes

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()

Need a high-speed mirror for your open-source project?
Contact our mirror admin team at info@clientvps.com.

This archive is provided as a free public service to the community.
Proudly supported by infrastructure from VPSPulse , RxServers , BuyNumber , UnitVPS , OffshoreName and secure payment technology by ArionPay.