plot_Upset {mpwR} | R Documentation |
Upset Plot
Description
Plot intersections of analyses for different levels.
Usage
plot_Upset(
input_list,
label = c("Precursor.IDs", "Peptide.IDs", "Protein.IDs", "ProteinGroup.IDs"),
nr_intersections = 10,
highlight_overlap = FALSE
)
Arguments
input_list |
A list with data frames and respective level information. |
label |
Character string. Choose between "Precursor.IDs", "Peptide.IDs", "Protein.IDs" or "ProteinGroup.IDs" for corresponding level. Default is "Precursor.IDs". |
nr_intersections |
Numeric. Maximum number of intersections shown in plot. Default is 10. |
highlight_overlap |
Logical. If TRUE, overlapping intersections is highlighted in yellow. Default is FALSE. If TRUE, overlapping intersections need to be in plot! |
Details
Identifications per level of each analysis are compared and possible intersections visualized.
Value
This function returns a Upset plot.
Author(s)
Oliver Kardell
Examples
# Load libraries
library(UpSetR)
library(tibble)
# Example data
data <- list(
"A" = c("A", "B", "C", "D"),
"B" = c("A", "B", "C", "F"),
"C" = c("A", "B", "G", "E")
)
# Plot
plot_Upset(
input_list = data,
label = "Peptide.IDs"
)
[Package mpwR version 0.1.5 Index]