使用wordcloud包,我需要将wordclouds调整为矩形。 wordcloud本身的创建不成问题。我使用的是自定义函数: createCorpus <- function (name, name2, output) {
# Here comes all the processing for generating a corpus
# irrelevant for
我有2列(数据帧)CSV文件 列1包含了一句我爱香蕉 和2列包含一个CLASSE我已经5 classes 我需要一个wordcloud每个类 其实每个类都对应每个类都有可能做到这一点吗? 它试试这个代码,但id不工作的数据集 text classe
i love banana positive
i hate banana negetive
maybe i love
创建Wordcloud时,最常见的做法是使所有单词都为小写。但是,我希望wordclouds能够显示大写字母。在强制大写字母后,wordcloud仍然显示小写字母。任何想法为什么? 可重放代码: library(tm)
library(wordcloud)
data <- data.frame(text = c("Creativity is the art of being ‘pro