Description Usage Arguments Value Examples
View source: R/plotBipartite.R
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.
1 | 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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.