Creating Interactive Collapsible Tree Diagrams in R using D3.js

A few weeks ago, I was working on a Shiny app that would interface with our database, allowing you to pick out a section or subsection of data and visualize your selection. The trouble was, it was tough to see the forest for the trees using a series of linked drop-down lists. You could successfully narrow down a dataset using this method, but it wasn’t very friendly or appealing, nor would it lend you any perspective as to where in the hierarchy your selection was. Read On →