Clustered heatmap
A heatmap sorted by two dendrograms, as seaborn's clustermap: Tree mode="cluster" draws each precomputed linkage to scale by its merge heights, in Frames that share the heatmap's rows and columns, and labels the leaves by their order.
Static preview; loading the interactive plot
<GraphData nodes={rows.nodes} edges={rows.edges}>
<Tree root={rows.root} mode="cluster" height="height" orientation="right">
<Frame x={{domain: [-7, 0], range: [-3, -0.15]}} y={{domain: [-0.5, R - 0.5], range: [0, R]}}>
<Edges><Segments start="start" end="end" curve="step-before" /></Edges>
</Frame>
</Tree>
</GraphData>