How to use R-wordcloud2 package to draw word Cloud
Editor to share with you how to use the R-wordcloud2 package to draw word clouds, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
One data preparation
Load the required R package and prepare the txt text file for wandering the earth.
Library (jiebaRD) library (jiebaR) library (wordcloud2)
Dichotomous word frequency
Use the jieba package to segment the text.
Engine = worker () segment ("wandering Earth .txt", engine) data