upset_plot {aplotExtra}R Documentation

upsetplot2

Description

Plot a upset plot

Usage

upset_plot(
  list,
  nintersects = NULL,
  order.intersect.by = c("size", "name"),
  order.set.by = c("size", "name")
)

Arguments

list

a list of sets

nintersects

number of intersects. If NULL, all intersections will show.

order.intersect.by

one of 'size' or 'name'

order.set.by

one of 'size' or 'name'

Details

This function generate a upset plot by creating a composite plot which contains subplots generated by ggplot2.

Value

an upset plot

Examples

 list = list(A = sample(LETTERS, 20),
             B = sample(LETTERS, 22),
             C = sample(LETTERS, 14),
             D = sample(LETTERS, 30, replace = TRUE))
 upset_plot(list)
 upset_plot(list, order.intersect.by = "name")
 upset_plot(list, nintersects = 6)

[Package aplotExtra version 0.0.2 Index]