plotBipartite {FELLA} | R Documentation |
This function plots a bipartite graph, tailored for the hypergeometric over representation analysis. As the nodes can only be compounds and pathways, the layout is simple and bipartite.
plotBipartite(graph = NULL, layout = FALSE, ...)
graph |
Graph result that must come from the hypergeometric test analysis |
layout |
Logical, should the plot be returned as a layout? |
... |
Additional parameters passed to
|
If layout = F
then the value
returned is invisible()
.
Otherwise, the layout is returned, also in an invisible fashion.
## This function is internal data(FELLA.sample) data(input.sample) ## Enrich input obj <- enrich( compounds = input.sample, data = FELLA.sample, method = "hypergeom") ## Generate the bipartite graph (only in the hypergeometric test) g <- generateResultsGraph( method = "hypergeom", threshold = 1, object = obj, data = FELLA.sample) ## Plot it FELLA:::plotBipartite(g)