View source: R/subsetNetwork.R
subsetNetwork | R Documentation |
Subset the output of polishNetwork by a list of nodes name
subsetNetwork(graph, genes)
graph |
A graphNEL object. The output of polishNetwork. |
genes |
A list of nodes names |
An object of graph.
library(graph)
set.seed(123)
g1 <- randomEGraph(LETTERS[seq.int(15)], edges=100)
g1 <- subsetNetwork(g1, LETTERS[seq.int(5)])
plot(g1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.