plotPPI {HPiP} | R Documentation

## Plot the Predicted PPI

### Description

Plot the predicted PPIs. This function uses the plot function of the `igraph`.

### Usage

    plotPPI(
      ppi,
      edge.name = "ensemble_score",
      node.color = "grey",
      edge.color = "orange",
      cex.node = 4,
      node.label.dist = 1.5
    )

### Arguments

`ppi` | A data.frame containing protein-protein interactions with edge score.
`edge.name` | A character string giving an edge attribute name.
`node.color` | The fill color of the node.
`edge.color` | The color of the edge.
`cex.node` | The size of the node.
`node.label.dist` | The distance of the label from the center of the node.

### Details

plotPPI

### Value

A PPI plot.

### Author(s)

Matineh Rahmatbakhsh, matinerb.94@gmail.com

### Examples

    df <- data.frame(
        node1 = c("A", "B", "C", "D", "E"),
        node2 = c("C", "E", "E", "E", "A"),
        edge.scores = c(0.5, 0.4, 0.3, 0.2, 0.7)
    )
    plotPPI(df, edge.name = "edge.scores")

[Package HPiP version 1.0.0 Index]