Open ttbachyinsda opened 6 years ago
You can add a size parameter to wordcloud2 function to enlarge the wordcloud. the default of size is 1. For you specific dataset here, The "United States" has a much higher frequency than other counties. you might also need to change the weightFactor function for best visualization. You can refer to my fork for this part.
I'm trying to use wordcloud2 to generate a picture like this: But it's too small. Could you help me to make this image larger? Here is my code: library(wordcloud2) library(htmlwidgets) library(webshot) filepath = "C:\Users\zjkgf\PycharmProjects\ipfenxi\picture1.txt" s = read.csv(filepath, fileEncoding = "utf-8") so = demoFreq st = wordcloud2(s,minSize=2, color = 'random-dark', backgroundColor = "white",fontFamily = "微软雅黑", shape = 'square')