Eclipse で R を使用してワードクラウドを作成しようとしています。私は R を何週間も問題なく使用してきましたが、さまざまなプロットを作成しましたが、ワードクラウドを作成するとき、あらゆる種類のワードクラウドをさまざまな構成を使用して作成すると、すべてのワードが重なったワードクラウドが常に得られます。
私はさまざまな例に従いましたが、常に単語が重複しています。たとえば、次のコードを実行すると:
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)
私はこの結果を得ます:
ご覧のとおり、すべての単語が重複していて、どうすればよいかわかりません。私はインターネットでたくさん検索しましたが、手がかりがありませんでした。