I am clustering my data using hierarchical clustering.
So far, I calculated the pairwise distance between data and found the tree containing the hierarchical cluster with linkage function.
I would like to form the hierarchical cluster when the distance between clusters are smaller than a certain distance (42.3m).
The following figure of data is the output of linkage function, the third column is the distance between the two cluster merged. I would like to form the hierarchical cluster until index 24242 (24242th link).
I understand the threshold for defining clusters are either the heights or the inconsistency coefficients of nodes.
Is it possible to define the threshold using the distance between clusters or the link number?
I believe there must be a better approach than using the cluster function in this situation, but I'm at a loss.
Thanks in advance!