path_vector_new | R Documentation |
Nodes are traversed in the order that they should be stacked in a Muller plot. Each node appears exactly twice.
path_vector_new(
tree,
i = NULL,
Adj = NULL,
Col = NULL,
is_leaf = NULL,
path = NULL
)
tree |
Dataframe comprising an adjacency matrix, with column names "Parent" and "Identity" |
i |
Current node |
Adj |
Adjacency matrix |
Col |
Node label |
is_leaf |
Label whether node is a leaf |
path |
The path vector so far |
A list, including a vector specifying the path.
Rob Noble, robjohnnoble@gmail.com
edges1 <- data.frame(Parent = c(1,1,1,3,3), Identity = 2:6)
path_vector_new(edges1)$path
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.