addNode | R Documentation |
Add a node with assigned layer and attributes to a graph
addNode(g, nodeName, layerName, attributes = NA)
g |
The input graph. |
nodeName |
The name of the node to add. |
layerName |
The name of the layer to be assigned to the node. |
attributes |
The attributes of the node to add. This argument must be a named list. |
The mully graph, with the new node.
g=mully::demo() attributes=list("specie"="Homo Sapiens") addNode(g = g,nodeName = "g3",layerName = "Gene",attributes = attributes)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.