Skip to contents

analyze_enrichments() is a GGplot2 implementation for plotting the expression differences as foldchange ~ statistical significance. See also plot_proportion(). This function can take either a tidyproteomics data object or a table with the required headers.

Usage

analyze_enrichments(
  data = NULL,
  top_n = 50,
  significance_max = 0.05,
  enriched_up_color = "blue",
  enriched_down_color = "red",
  height = 6.5,
  width = 10
)

Arguments

data

tidyproteomics data object

top_n

a numerical value defining the number of terms to display in the plot

significance_max

a numeric defining the maximum statistical significance to highlight.

enriched_up_color

a color to assign the up enriched values

enriched_down_color

a color to assign the down enriched values

height

a numeric

width

a numeric

Value

a tidyproteomics data object

Examples

if (FALSE) {
library(dplyr, warn.conflicts = FALSE)
library(tidyproteomics)
hela_proteins %>%
   expression(knockdown/control) %>%
   enrichment(knockdown/control, .terms = "biological_process") %>%
   analyze_enrichments(significance_max = 0.05)
}