
Compute set intersections and sizes for an UpSet-style plot
Source:R/upset.R
upset_calculate_intersections.RdEnumerates every combination of the supplied sets (at every order from
single sets up to all of them), and sizes each one. Under
intersection_assignment_type = "upset" a member is only counted at
its highest-order intersection (as in the original UpSet), so lower-order
combinations only report members not already claimed by a higher one;
under "all" a member is counted in every intersection it belongs to.
Usage
upset_calculate_intersections(
sets,
show_empty_intersections = TRUE,
intersection_assignment_type = "upset"
)