Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to use R-wordcloud2 package to draw word Cloud

Shulou Source: shulou.com Published: 2022-06-01 09:53:09 09月26日 Update

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

Tags: Earth word frequency graphics articles vagrants statistics humans content engines ground sun files text Jupiter preparation not much number matter most data Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Shulou Information OPPO Reno Huawei Redmi