hier_display | R Documentation |
This function shows the entire hierarchy in a nice way.
hier_display(x, root = NULL)
x |
a hierarchy object, either directly generated and modified using
|
root |
|
NULL
; the tree is printed to the prompt
h <- hier_create(root = "Total", nodes = LETTERS[1:2])
h <- hier_add(h, root = "A", nodes = c("a1", "a2"))
# display the entire tree
hier_display(h)
# display only a subtree
hier_display(h, root = "A")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.