text wordcloud plotting error

后端 未结 3 1564
遥遥无期
遥遥无期 2021-02-14 15:20

I have the following code for plotting a word cloud, and am getting the subsequent error.

wordcloud(dm$word, dm$freq, scale=c(8,.2),min.freq=2,
+           m         


        
相关标签:
3条回答
  • 2021-02-14 15:55

    Try with smaller scale, 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())
    
    0 讨论(0)
  • 2021-02-14 16:03

    You may also try plotting with a larger device, for example

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

    see the link for other ways to plot a certain size.

    0 讨论(0)
  • 2021-02-14 16:17

    wordcloud2(dm) might work. you can install wordcloud2 package and just one

    0 讨论(0)
提交回复
热议问题