View source: R/Visualizations_general.R
create_upset_plot | R Documentation |
This function generates an UpSet plot from a list of sets and saves it as an image.
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
)
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) |
A ggplot2 UpSet plot.
# Example usage:
create_upset_plot(list("A" = c("1", "2", "3"), "B" = c("2", "3", "4")), "upset_plot.svg")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.