1. 学习
  2. /
  3. 课程
  4. /
  5. Introduction to Text Analysis in R

Connected

练习

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.

说明

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.