make_UpSet_plot: Make an UpSet plot from a list of unique identifiers

Description Usage Arguments Value Examples

View source: R/UpSet_maker.R

Description

make_UpSet_plot() creates an UpSet plot from a list of unique identifiers such as UniProt accession numbers or proteoform record numbers.

Usage

1
2
3
4
5
6
7
make_UpSet_plot(
  UpSetlist,
  plotType = "Protein",
  barColor = "#4C4184",
  savePDF = FALSE,
  outputDir = getwd()
)

Arguments

UpSetlist

A list of lists of identifiers properly formatted for use by the UpSetR::upset() function. Alternatively, a data frame with columns named by fraction number and containing unique identifiers for proteins/proteoforms.

plotType

Type of UpSet plot to make. This only affects the axis titles and filename. Typical values are "Protein" or "Proteoform". Defaults to "Protein".

barColor

Color of bars in the UpSet plot. Defaults to MagLab purple ("#4C4184").

savePDF

Boolean value, controls whether to save PDF output to outputDir. Defaults to FALSE.

outputDir

Directory to save PDF output. Defaults to R working directory.

Value

An UpSet plot created by UpSetR::upset(). If savePDF is TRUE, a PDF is saved to the output directory.

Examples

1
2
3
4
5
6
7
8
make_UpSet_plot(
   list(
      list(
         "Fraction1" = c("A", "B", "C", "D", "E"),
         "Fraction2" = c("C", "D", "E", "F", "G")
      )
   )
)

davidsbutcher/viztools documentation built on Oct. 5, 2020, 3:25 a.m.