Description Usage Arguments Details Value Author(s) References See Also Examples
These functions help creating a plot of the Gene Ontology hierarchy.
1 2 3 |
table |
A data frame with one column, containing the p-values of the enriched GO terms. The row names of the data frame should contain the GO ids. |
colbar.length |
Numeric scalar, the length of the color bar. |
label.cex |
Numeric scalar, factor for the label sizes, e.g. ‘2’ means double size compared to the default. |
alpha |
Alpha channel for the fill color of the vertices. |
abbrev |
Numeric scalar, the minimum length for the abbreviated GO ids. |
GOGRAPHS,go.terms |
These are for internal use only. |
graph |
An |
coords |
Logical scalar, whether to return the coordinates of the vertices on the plot. |
... |
Additional arguments. These are passed to
|
A GO plot can be created in two steps. gograph
creates an
igraph
graph object that contains all the information about the
plot; gographPlot
creates the actual plot.
The two steps are needed, because gograph
calculates the
optimal size of the plot, and then a graphics device of this size can
be created before calling gographPlot
.
The optimal size is returned by gograph
in the width
and
height
graph attributes, these can be queried with
1 2 3 4 |
gograph
returns an igraph
object.
gographPlot
by default returns NULL
, invisibly. If the
coords
argument is TRUE
, then it returns the coordinates
of the vertices on the plot.
Gabor Csardi csardi.gabor@gmail.com
The Gene Ontology Consortium. Gene ontology: tool for the unification of biology. Nat. Genet. May 2000;25(1):25-9.
Bergmann S, Ihmels J, Barkai N: Iterative signature algorithm for the analysis of large-scale gene expression data Phys Rev E Stat Nonlin Soft Matter Phys. 2003 Mar;67(3 Pt 1):031902. Epub 2003 Mar 11.
The igraph0
package for more about igraph
graphs.
1 2 3 4 5 6 7 8 9 | data(ALLModulesSmall)
GO <- ISAGO(ALLModulesSmall)
gotab <- summary(GO$BP)[[1]][,"Pvalue",drop=FALSE]
G <- gograph(gotab)
if (interactive()) {
x11(width=G$width/15, height=G$height/15)
gographPlot(G)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.