plotBipartite: Internal function to plot a bipartite graph

Description Usage Arguments Value Examples

View source: R/plotBipartite.R

Description

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.

Usage

1

Arguments

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 plot.igraph

Value

If layout = F then the value returned is invisible(). Otherwise, the layout is returned, also in an invisible fashion.

Examples

 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)

FELLA documentation built on Nov. 8, 2020, 6:57 p.m.