combGO_plot | R Documentation |
This function will combine GO results from GO_GEM when performed on DEGs into a single plot.
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
)
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. |
A plot of top GO results
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.