我正在尝试在 Eclipse 中使用 R 创建一个 wordcloud。我已经使用 R 工作了几个星期,没有任何问题,并且我创建了许多不同的图,但是在创建 wordcloud 时,任何一种它们并使用不同的配置,我总是得到所有单词重叠的 wordcloud。
我跟着不同的例子,我总是得到重叠的话。例如,如果我执行此代码:
library(wordcloud)
library(tm)
wordcloud("May our children and our children's children to a
thousand generations, continue to enjoy the benefits conferred
upon us by a united country, and have cause yet to rejoice under
those glorious institutions bequeathed us by Washington and his
compeers.",colors=brewer.pal(6,"Dark2"),random.order=FALSE)
我得到这个结果:
如您所见,所有单词都重叠了,我不知道该怎么办。我在互联网上搜索了很多,我没有得到任何线索。