The function plotSPW can visualize subpathway network graph.
plotSPW(
subpathwayID,
layout = NULL,
margin = 0,
vertex.label.cex = 0.8,
vertex.label.font = 0.8,
vertex.label.dist = 1,
vertex.size = 12,
edge.arrow.width = 3,
edge.label.cex = 0.6,
vertex.label.color = "black",
vertex.color = "#F08080",
vertex.frame.color = "dimgray",
edge.color = "grey70",
edge.label.color = "dimgray",
sub = NULL,
main = NULL
)a subpathway map
Subpathway id .A character vector.
A matrix of x-y coordinates with two dims. Determine the placement of the nodes for drawing a graph.
A numeric. The value is usually between -0.5 and 0.5, which is able to zoom in or out a subpathway graph. The default is 0.
A numeric vector of node label size.
A numeric vector of label font.
A numeric vector of label dist.
A numeric vector of Node size. See plot.igraph.
Edge arrow width. The default is 3.
Edge label size.
A vector of node label colors. The default is black.
A vector of node colors. The default is the KEGG node color.
A vector of node frame color. The default is dimgray.
A vector of edge color. The default is dimgray
A vector of edge label color. The default is dimgray.
A character string of subtitle.
A character string of main title.
# load depend package
library(igraph)
# plot network graph of the subpathway "00020_4"
plotSPW("00020_4")
Run the code above in your browser using DataLab