Description Usage Arguments Details Value Examples
View source: R/graph_operation.R
Allows to retrieve the list of nodes to give to the igraph constructor from a dataframe.
1 | node_vector_from_dataframe_unit(dataframe)
|
dataframe |
data.frame. The dataframe from which the node names must be retrieved |
node_vector_from_dataframe_unit returns a vector containing in the order of the dataframe columns the name of each of the nodes to be displayed on the graph.
returns a vector containing the name of all the nodes to be added to the graph.
1 2 3 4 5 | SelIndex_SelThumb <- c(1, 2)
SelIndex_SelPinky <- c(3, 4)
df <- data.frame(SelIndex_SelThumb, SelIndex_SelPinky)
nodes.vec <- node_vector_from_dataframe_unit(df)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.