Description Usage Arguments Value Examples
This representation is easily converted to the json required by d3 by using toJSON in the jsonlite package.
1 |
el |
[data.frame] A data.frame with names "parent" and "child", giving the edgelist for the tree structure to generate. Columns called "length" or "depth" will also be accepted and stored in the resulting list. |
cur_node |
The name of the root node in the edgelist, from which to start the recursive descent. |
[list] A nested list whose structure reflects the edgelist in el. At each level, "name" is a character string specifying the name of the root in the subtree and children is a list with the same structure as the overall tree. If "length" or "depth" are provided in "el", this information is stored along with "name".
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.