So I have created my plot with:
spot_average<-hclust(diss_matrix, method = "average")
#I used row.names earlier so the dendrogram has names on each node
gp <- ggplotly(fviz_dend(spot_average, k = 2, show_labels = T,
type = "phylogenic",
phylo_layout = "layout_as_tree",
textposition = "auto",
hoverinfo = "labels",
)
This shows a horrible mess of overlapping text, what I want is for nodes to show and then when you hover with your cursor, the label appears
question from:
https://stackoverflow.com/questions/65947543/have-dendrogram-label-appear-only-hover-with-fviz-dend-and-plotly-in-r 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…