create_upset_plot: Create an UpSet plot from a list of sets

View source: R/Visualizations_general.R

create_upset_plotR Documentation

Create an UpSet plot from a list of sets

Description

This function generates an UpSet plot from a list of sets and saves it as an image.

Usage

create_upset_plot(
  set_list,
  output_filename = NULL,
  image_format = "png",
  do.sqr = T,
  plot.nrow = 2,
  plot.ncol = 2,
  plot.heights = c(1, 2),
  plot.widths = c(1, 0.8),
  save.height = 3.5,
  save.width = 3
)

Arguments

set_list

A list of sets to visualize.

output_filename

The filename for the output image.

image_format

The format in which to save the image (default: "svg").

do.sqr

Should the y-axis of the main plot and overlap plot be square-root transformed? (default: TRUE)

Value

A ggplot2 UpSet plot.

Examples

# Example usage:
create_upset_plot(list("A" = c("1", "2", "3"), "B" = c("2", "3", "4")), "upset_plot.svg")



eisascience/scCustFx documentation built on June 2, 2025, 3:59 a.m.