9.23 Word Clouds

  • A word cloud (also called a tag cloud), is basically an infographic that indicates the frequency of words in a collection of text (e.g., tweets, a text document, a set of text documents).

  • Here we use the wordcloud2 package and the demoFreq dataset, containing file of words and their frequency, which ships with it.

# library
library(wordcloud2) 
 
# have a look to the example dataset
# head(demoFreq)

# Basic plot
wordcloud2(data=demoFreq, size=1.6)