plotBipartite {FELLA} | R Documentation

## Internal function to plot a bipartite graph

### 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

    plotBipartite(graph = NULL, layout = FALSE, ...)

### 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

    ## 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)

[Package FELLA version 1.0.1 Index]