【发布时间】:2015-03-14 22:07:08
【问题描述】:
我有以下用于绘制词云的代码,并且收到了后续错误。
wordcloud(dm$word, dm$freq, scale=c(8,.2),min.freq=2,
+ max.words=Inf, random.order=FALSE, rot.per=.15, colors=rainbow
>Warning message:
In wordcloud(dm$word, dm$freq, scale = c(8, 0.2), min.freq = 2,:health insurance could not be fit on page. It will not be plotted. Unable to view plot.
我不明白为什么会这样。请帮忙。
【问题讨论】:
-
尝试使用较小的比例,例如
scale = c(4, 0.2)或更少的话:例如max.words = 30。 -
也许在 wordcloud 之前你 gsub() 将“健康保险”转换为“hlth ins”。所以它适合你想要的字数。
-
非常感谢。小规模的工作。
标签: r word-cloud