plot hierarchical clustering of references