This will be the last post in our iterations in visualizing trees. In the next post, we’ll move on to how we can use the very popular React in R.
Then our second post made a more compact parttree.
Although the parttree is more compact, we can compress even further by stacking our link paths to reflect the leaf details and eliminating the leaf nodes. Then, we can blend in some interactivity to help the user process the visualization and examine the data.
At the leaf level of our parttree, the repetition of "Yes" and "No" could interfere with our ability to compare survival at each level.
Let’s see what happens if we instead convey the survival information in our link paths that connect the nodes. This is similar to a stacked bar or streamgraph. To accomplish this, we will use d3.stack().
We save some space, but a user might get confused. For example, the "Yes" does not flow through the nodes. Some interactivity might help clear up the confusion.