我有以下代码用于绘制文字云,并得到后续错误.
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.
Run Code Online (Sandbox Code Playgroud)
我不明白为什么会这样.请帮忙.
小智 10
尝试使用较小的比例,例如:
wordcloud(Election2016Corpus, max.words =100,min.freq=3,scale=c(4,.5),
random.order = FALSE,rot.per=.5,vfont=c("sans serif","plain"),colors=palette())
Run Code Online (Sandbox Code Playgroud)
例如,您也可以尝试使用更大的设备进行绘图
dev.new(width = 1000, height = 1000, unit = "px")
wordcloud(...)
Run Code Online (Sandbox Code Playgroud)
请参阅链接以了解绘制特定尺寸的其他方法。