1. Learn
  2. /
  3. Courses
  4. /
  5. Introduction to Text Analysis in R

Connected

Exercise

Creating a word cloud

We've seen bar plots, now let's visualize word counts with word clouds! tidy_twitter has already been loaded, tokenized, and cleaned.

Instructions

100 XP
  • Load the wordcloud package.
  • Compute the word counts and assign to word_counts.
  • Assign the word column from word_counts to the words argument.
  • Assign the count column (n) from word_counts to the freq argument.