Learn R Programming

CompGO (version 1.8.1)

plotZRankedDAG: Plot a directed acyclic graph (DAG) based on the corrected Pvalues generated from comparing two sets of Z scores.

Description

This function accepts two functional annotation charts as input, performs a comparison on them using compareZscores() and plots a DAG based on the results. The saturation of each node is computed based on the Pvalue, such that the more significant values are darker in colour.

Usage

plotZRankedDAG(setA, setB, ont = "BP", n = 100, maxLabel = NULL, fullNames = TRUE, Pvalues = TRUE)

Arguments

setA
FunctionalAnnotationChart to compare
setB
FunctionalAnnotationChart to compare
ont
The gene ontology category for which to calculate enrichment
n
The number of top-ranked Pvalues to compare
maxLabel
The maximum number of characters in a node's label
fullNames
Whether to print the full GO term label or just the GO id
Pvalues
Whether to print P-values alongside each label

Examples

Run this code
## Not run: 
# data(funChart1)
# data(funChart2)
# plotZRankedDAG(funChart1, funChart2, n = 50)
# ## End(Not run)

Run the code above in your browser using DataLab