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

Connected

Exercise

Visualizing complaints

We ended the last chapter with complaint word counts. Now let's visualize those word counts with a bar plot.

The tidyverse and tidytext packages have been loaded. twitter_data has been tokenized and the standard stop words have been removed.

Instructions

100 XP
  • Only keep the words with counts greater than 100.
  • Create a bar plot using word_counts with word mapped to the x-axis.
  • Flip the plot coordinates.