我的数据汇总为带有word和freq的数据框
但是所有包含数字和字母的“单词”都将从单词云中删除
# reproducible example for alpha numeric 'words' dropped
library(wordcloud2)
demoFreq2 <- head(demoFreq, 10)
demoFreq2$word <- as.character(demoFreq2$word)
demoFreq2$word[2:3] <- c("FY2018", "Study-03")
wordcloud2(demoFreq2) # only 8 entries shown
# only prob for alpha numerics combined
demoFreq2$word[2:3] <- c("FY", "03")
wordcloud2(demoFreq2) # all 10 entries shown
感谢ekstroem做到了
仍然习惯于这个非标准对象