Wordcloud text error

I have the following code to build a vocabulary cloud, and I get the following error.

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. 

I do not understand why this is happening. Please, help.

+7
source share
3 answers

Try zooming out, for example:

 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()) 
+8
source

You can also try building with a large device , for example,

 dev.new(width = 1000, height = 1000, unit = "px") wordcloud(...) 

See the link for other ways to apply a specific size.

+2
source

wordcloud2(dm) may work. You can install the Wordcloud2 package and only one

0
source

Source: https://habr.com/ru/post/981101/


All Articles