hier_add | R Documentation |
This function allows to add nodes (levels) to an existing nested hierarchy.
hier_add(tree, root, nodes)
tree |
a (nested) hierarchy created using |
root |
(character) a name of an existing node in the hierarchy |
nodes |
(character) names of new nodes that should be added below
|
h <- hier_create(root = "Total", nodes = LETTERS[1:3])
h <- hier_add(h, root = "A", nodes = c("a1", "a5"))
hier_display(h)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.