combGO_plot: Combine GO Results from DE analysis into one plot

View source: R/GO.R

combGO_plotR Documentation

Combine GO Results from DE analysis into one plot

Description

This function will combine GO results from GO_GEM when performed on DEGs into a single plot.

Usage

combGO_plot(
  GOresList,
  title = "GO results",
  ts = c(10, 500),
  sig = TRUE,
  numTerm = 10,
  upcols = c("lightpink", "red"),
  downcols = c("lightblue", "blue"),
  labs = c("Downregulated", "Upregulated"),
  textsize = NULL,
  retGP = FALSE
)

Arguments

GOresList

list of GO_GEM results (set returnRes=TRUE) of length 2. Best for DEG GO results, where the first entry in the list is downregulated, and the second entry in the list is upregulated

title

Character for the plot title

ts

numeric vector of length 2 with the minimum and maximum term sizes for plotting. Default is c(10,500)

sig

Boolean indicating if top significant results should be plotted. Set to FALSE to plot top enriched results

numTerm

Numeric indicating the number of top terms to plot. Default is 10.

upcols

character vector of length 2 indicating the colour for upregulated enrichment and significance bars

downcols

character vector of length 2 indicating the colour for downregulated enrichment and significance bars

labs

character vector of length 2 indicating the specific legend labels for the entries in GOresList. Default=c("Downregulated","Upgreulated")

textsize

numeric indicating text size for plot. Leave NULL to keep default size.

retGP

Booliean indicating if the ggplot2 object should be returned for further editing. Default=FALSE.

Value

A plot of top GO results


kevincjnixon/BinfTools documentation built on July 10, 2024, 11:46 a.m.