简体   繁体   English

Wordcloud 在 R 中显示图像而不是文字

[英]Wordcloud showing image but not words in R

Having trouble getting the words to show up on an image mask for a word cloud in R.无法让单词显示在 R 中的单词云的图像掩码上。

Using this Simpsons PNG ( https://imgbin.com/png/PV5MuKbG/lisa-simpson-bart-simpson-homer-simpson-maggie-simpson-mayor-quimby-png )使用这个 Simpsons PNG ( https://imgbin.com/png/PV5MuKbG/lisa-simpson-bart-simpson-homer-simpson-maggie-simpson-mayor-quimby-png )

Code is below:代码如下:

wc1 <- sort(table(bplot_one$word), decreasing = TRUE)

figPath <- "Simpsons.png" 

wordcloud2(wc1, figPath = figPath)

It executed fine, but all I get is the png without the words它执行得很好,但我得到的只是没有文字的 png

Any idea how to fix this?知道如何解决这个问题吗?

Thanks谢谢

This is listed as an open issue on the package site: Fig Mask and lettercloud are not working with package installed from github #68 .这在 package 站点上被列为未解决的问题: Fig Mask and lettercloud are not working with package installed from github #68 There is a workaround posted: mask and letterCloud silently fail #12 .发布了一个解决方法: mask and letterCloud silently fail #12

The workaround is to refresh the viewer or open in a browser.解决方法是刷新查看器或在浏览器中打开。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM