让树状图标签只出现在 R 中的 fviz_dend 和 plotly

问题描述

所以我创建了我的情节:

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",)

显示了一堆可怕的重叠文本,我想要的是显示节点,然后当你用光标悬停时,标签出现

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)