首页 > 解决方案 > R wordcloud2 显示空白页 - 持久性问题

问题描述

我遇到的问题与之前在 18 年 5 月 3 日提出的问题完全相同。

在我尝试添加掩码之前,wordcloud2 表现良好。代码在 RMarkdown 中执行良好,没有错误,但也只产生一个空白页。以前的建议是重新安装我所做的 wordcloud2。然而,这并没有解决问题。

# works fine gives word cloud with red palette
wordcloud2(hmtTable, 
           size = 0.7, 
           color = rep_len(redPalette, nrow(hmtTable)))  


# produces blank page, heart.png is in subdirectory figs
wordcloud2(hmtTable, 
           size = 1.5, 
           figPath = "figs/heart.png", 
           color = rep_len(redPalette, nrow(hmtTable)))

这段代码应该已经产生了一个面具形状的词云。它没有,并且没有给出错误消息。

标签: r

解决方案


推荐阅读