r - 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)))
这段代码应该已经产生了一个面具形状的词云。它没有,并且没有给出错误消息。
解决方案
推荐阅读
- yaml - Sphinx:有没有办法通过 sphinx 读取 yaml 文件并生成 HTML 页面?
- fragment - ListFragment 仅在带有 ExpandableListadpater 的片段视图中显示第一项
- python - 仅当整行(每列)具有 NaN 值时,将 pandas 中的行替换为下一行
- authentication - CakePHP4 - 身份验证 - 如何更改默认用户模型?
- c++ - 如何捕获 QTableWidget 的编辑单元格的按键事件?
- javascript - ArangoDB:发送“statusCode:0”
- java - 二维数组中的非重复数字
- node.js - “请求有未知参数:[选项]”
- php - 按下按钮时隐藏 div
- kubernetes - Kubernetes - 如何在 .yml 文件中执行命令