S4 wrapper for UpSetR::upset() with improved default aesthetics.

plotUpset(object, ...)

# S4 method for list
plotUpset(object, ...)

# S4 method for matrix
plotUpset(
  object,
  nIntersects = 40L,
  orderBySize = c(bars = TRUE, matrix = TRUE)
)

# S4 method for data.frame
plotUpset(object, ...)

# S4 method for DataFrame
plotUpset(object, ...)

Arguments

object

Object.

...

Additional arguments.

nIntersects

integer(1) or Inf. Maximum number of intersections to plot. Set Inf to plot all intersections.

orderBySize

logical. Whether to order main bar plot and/or intersection matrix by set size.

  • "bars" refers to main bar plot.

  • "matrix" refers to intersection matrix, shown as connected dots.

Can pass in TRUE/FALSE boolean flag and both "bars" and "matrix" settings will inherit.

Value

Graphical output, no return.

Note

Updated 2020-08-25.

Examples

list <- list( a = c("a", "b", "c", "d", "e", "f"), b = c("b", "c", "d", "e", "f", "g"), c = c("c", "d", "e", "f", "g", "h"), d = c("d", "e", "f", "g", "h", "i") ) plotUpset(list)