.rect_dendrogram(dend, k = k, Palette = rect_border, rect_fill = rect_fill, 中的错误:k 必须介于 2 和 97 之间
我正在尝试在R中估算R中的簇树状图,以估算我制作的98个主题的结构主题模型。
我首先运行以下效果很好:
res.hc <- eclust(scale(out_corr$cor), "hclust", nboot = 500)
然后,我尝试使用以下语法来可视化树状图:
fviz_dend(res.hc, rect = TRUE)
在这里,我收到以下错误: .RECT_DENDROGRAM中的错误(dend,k = k,palette = rect_border,rect_fill = rect_fill,:: K必须在2到97之间
,因为我的模型中的主题数是98?如果是这样,是否有一种方法可以将树状图可视化而不将我的主题减少到97?
谢谢你!
I am trying to estimate a cluster dendrogram in R for a structural topic model I produced with 98 topics.
I first ran the following which worked well:
res.hc <- eclust(scale(out_corr$cor), "hclust", nboot = 500)
I then attempting to visualize the dendrogram using the following syntax:
fviz_dend(res.hc, rect = TRUE)
Here, I received the following error:
Error in .rect_dendrogram(dend, k = k, palette = rect_border, rect_fill = rect_fill, :
k must be between 2 and 97
Is this because the number of topics in my model is 98? If so, is there a way to still visualize the dendrogram without reducing my topics to 97?
Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
以下步骤有助于解决问题:
The following steps helped to resolve the issue: