make_intersection_degree_plot: Make an intersection degree plot from a set of unique...

Usage Arguments Value Examples

View source: R/make_intersection_degree_plot.R

Usage

1
2
3
4
5
6
7
make_intersection_degree_plot(
  IDlist,
  Yrange = c(0, 100),
  plotType = "Protein",
  fillColor = "#4C4184",
  fontFamily = "sans"
)

Arguments

IDlist

A list of vectors. Each list item should be a vector of unique identifiers corresponding to protein or proteoform IDs, e.g. UniProt accession numbers or proteoform record numbers from the Consortium for Top-Down Proteomics proteoform atlas.

Yrange

Percentage range to use for the Y-axis of the plot. Defaults to 'c(0,100)'.

plotType

Type of plot to create, typically "Protein" or "Proteoform".This only affects the Y-axis title and can be any string.

fillColor

Fill color to use for bars on plot. Should be specified as a Hex code. Defaults to MagLab violet (#4C4184).

fontFamily

Font family to use for plot. Defaults to "sans".

Value

An intersection degree plot (a ggplot object).

Examples

1
2
3
4
5
6
7
8
IDlist <-
  list(
       "Frac. 1" = c("A", "B", "C", "D"),
       "Frac. 2" = c("A", "B", "E"),
       "Frac. 3" = c("A", "E", "F")
      )

make_intersection_degree_plot(IDlist)

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