Runs plot_upset() once per entry of vars, restricting df to the
distinct (var, Compare) combinations beforehand (via select_unique()) so
each plot only sees the columns it needs, and titles each plot
"<var> overlap by <Compare>".
Arguments
- df
A
pep_all-shaped data frame.- vars
Character vector of column names to plot overlap for, e.g.
c("Peptide", "Sequence", "Accession").- n_intersections
Maximum number of intersections to display per plot.
- Compare
Name (string) of the column defining the groups compared.
- labels
Forwarded to
plot_upset()("abs","perc", or other). Defaults to"perc".- lab.size
Forwarded to
plot_upset().- plot.margin
Forwarded to
plot_upset().
Examples
if (FALSE) { # \dontrun{
plot_upset_batch(pep_all, c("Peptide", "Sequence", "Accession"), Compare = "Condition")
} # }