plotPPI | R Documentation |
Plot the predicted PPIs. This function uses the plot
function of the igraph
.
plotPPI(
ppi,
edge.name = "ensemble_score",
node.color = "grey",
edge.color = "orange",
cex.node = 4,
node.label.dist = 1.5
)
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. |
plotPPI
A PPI plot.
Matineh Rahmatbakhsh, matinerb.94@gmail.com
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.