Word Clouds in R: Useful & Beautiful Word Clouds with wordcloud2
In this video, I show you how to make word clouds with the tm library and wordcloud2 library in just a few minutes. We first start by cleaning our text, then building our word cloud. We don't just stop there though, because there are lots of potential improvements you can make to your wordcloud.
Code: https://github.com/abhimotgi/dataslice/blob/master/R/Word%20Clouds%20in%20R.R
Kaggle Medium Posts Dataset: https://www.kaggle.com/dorianlazar/medium-articles-dataset?select=medium_data.csv
Word Cloud 2 Documentation: https://cran.r-project.org/web/packages/wordcloud2/vignettes/wordcloud.html
Marti Hearst's Medium Article: https://medium.com/multiple-views-visualization-research-explained/improving-word-clouds-9d4a04b0722b
0:00 Intro & Setup
1:44 Create corpus and clean text
3:44 Create term document matrix
5:14 Build word cloud
6:14 Improve your word cloud
12:09 Outro