Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
539 views
in Technique[技术] by (71.8m points)

Have dendrogram label appear only hover with fviz_dend and plotly in R

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...