Main problem: nodes can overplot the way the function was coded. A quickfix was implemented in commit d00d3e4 so that all nodes can at least be seen, but it's still not very nice. The function needs to be recoded, I can see 2 options:
compute coordinates by travelling the tree upward (i.e. from terminal nodes to node 0), rather than downward as currently implemented.
try a polar plot, where node 0 would be at radius 0, level-1 nodes at radius 1 and evenly-spaced angles, etc.
Main problem: nodes can overplot the way the function was coded. A quickfix was implemented in commit d00d3e4 so that all nodes can at least be seen, but it's still not very nice. The function needs to be recoded, I can see 2 options: