wordcloud2:形状覆盖单词

问题描述

我试图用wordcloud2绘制单词云。只要我尝试绘制单词,一切都可以正常工作,但是只要我尝试使用figPath / wordcloud2::lettercloud来塑造单词云,就会出问题了。要查看输出,我必须运行该函数两次/重新加载它(我认为这是一个已经过报告和讨论的错误)

另外,在我的情况下,似乎我只是在绘制图形时不带文字...

dat <- dplyr::tibble(word=c("A","B","C","D"),n=c(10,1,50,12))
# works fine
wordcloud2::wordcloud2(dat)
# here I just see the shape
wordcloud2::wordcloud2(dat,figPath="data/test_shape.jpg")
# here I just see the letter
wordcloud2::letterCloud(dat,word="R")

enter image description here

解决方法

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

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

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

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...