View source: R/decorate_graph.R
decorate_graph | R Documentation |
This function takes a data frame and a popgraph object and attempts to add the node data (from the data frame) to the graph as vertex attributes.
decorate_graph(graph, data, stratum = "Population")
graph |
An object of type |
data |
An object of type |
stratum |
The column name of node lables to match up with graph.stratum (default 'Population') to be matched with V(graph)$name attribute |
A populated igraph object with as much of the metadata in
the data.frame as possible stitched into the igraph
object
Rodney J. Dyer <rjdyer@vcu.edu>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.