Hi, I’m using figurefactory.create_dendrogram function. I read that it’s just a wrapper for scipy dendrogram function but the 2 work in a slightly different way.
I have a distance matrix obtained with a specific method needed for my data, and samples are not quantitative variables so I can’t put them as create_dendrogram(X) parameter.
With scipy I can still obtain the correct dendrogram in this way
depth_distance_matrix = [[0, 0.1, 0.3, 0.7], [0.1, 0, 0.5, 0.2], [0.3,0.5,0,0.6], [0.7,0.2,0.6,0]] depth_linkage_condensed = distance.squareform(depth_distance_matrix) a = linkage(depth_linkage_condensed, 'average') dendrogram(a, no_plot=False)
On the contrary ff.create_dendrogram requires the parameter X which in this case it’s not available.