plotCommunityDetection {pandaR} | R Documentation

## Community detection plot

### Description

This function performs community detection on an undirected PANDA network. The function optionally returns the graph and community.

### Usage

    plotCommunityDetection(x, scaleEdge = 5, verbose = TRUE, ...)

### Arguments

`x` | Toy PANDA output represented as a TF, Gene, and Score.
`scaleEdge` | Visualization parameter for the edges.
`verbose` | TRUE/FALSE - Report community structure.
`...` | Options for the plot function.

### Value

Optionally return a list with the graph and community.

### Examples

    # start with some toy PANDA output
    mat <- cbind(rep(1:5, each=10), rep(seq(11,20),5), sample(100, 50)/100)
    x =plotCommunityDetection(mat)
    str(x)

    #example of very different edges
    set.seed(1)
    subst <- sample(50,10)
    mat[subst, 3] <- subst
    plotCommunityDetection(mat,scaleEdge=0.5)

[Package pandaR version 1.26.0 Index]