The collapsibleTree library allows to build interactive collapsible Reingold-Tilford tree diagrams. Click on a node to see the underlying sub-nodes. The required input is a nested data frame. If your hierarchy is presented as an edge list, the graph #338 shows how to make the transformation using the data.tree library.
Visit the GitHub page of collapsibleTree to see all the possible customization.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
# dispo on CRAN : install.packages("collapsibleTree") # by Adeel Khan: https://github.com/AdeelK93 # Documentation: https://adeelk93.github.io/collapsibleTree/ # Github: https://github.com/AdeelK93/collapsibleTree # Load library library(collapsibleTree) # input data must be a nested data frame: head(warpbreaks) # Represent this tree: collapsibleTree( warpbreaks, c("wool", "tension", "breaks")) |
Related
Leave a Reply