Description Usage Arguments Value
Adds data to the 'observed' attributes. Any vertex that does not map to a name in the data will be treated
as a hidden node, meaning V(g)[v]$is.observed
will be FALSE
.
If a variable in the data is not present amongst the graph vertices, an error is thrown.
1 | addDataToVertices(g, data, fixed)
|
g |
igraph object. The vertices must be named. |
data |
a data frame. All of the names in the data from must match a vertex name. |
an igraph object where the
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.