getGraph,MultiFactor-method | R Documentation |
Get a graph object out of an MultiFactor.
## S4 method for signature 'MultiFactor'
getGraph(x, format = "igraph", ...)
## S4 method for signature 'list'
getGraph(x, format = "igraph", ...)
x |
|
format |
|
... |
additional arguments (currently not used). |
a specified graph object.
igraph::graph_from_data_frame()
and
igraph::as_graphnel()
, which are used under the hood, from
igraph::igraph()
package.
# Generate a regular igraph object
g <- getGraph(kegg_link())
plot(g)
# Output formats
ec2cpd <- kegg_link()[["ec2cpd"]]
getGraph(ec2cpd, format = "graph")
getGraph(ec2cpd, format = "igraph")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.