plotGraph | R Documentation |
Plotting utility for graphs
plotGraph( gr, node.label = "SYMBOL", node.data = NULL, edge.data = NULL, node.color = "firebrick", edge.color = "firebrick", edge.mode = c("directed", "undirected"), layout = c("fruchterman.reingold", "circle") )
gr |
graph. An object of class |
node.label |
character. A node data attribute that is used to label the nodes. |
node.data |
character. A node data attribute that is used to overlay on the nodes using different colors. |
edge.data |
character. An edge data attribute that is used to overlay on the edges using different line types. |
node.color |
character. Default color for the nodes. Is overwritten by
|
edge.color |
character. Default color for the edges. |
edge.mode |
character. Whether to display directed or undirected edges. |
layout |
character. Circular layout or network layout. |
A ggplot.
library(BioPlex) corum.df <- getCorum("core") corum.glist <- corum2graphlist(corum.df) gr <- corum.glist[["CORUM107_TFIIH_transcription_factor_complex"]] plotGraph(gr, edge.mode = "undirected", edge.color = "grey", layout = "circle")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.