CommencerCommencer gratuitement

Visualizing non-complaints

Now let's visualize the word counts associated with non-complaints.

Cet exercice fait partie du cours

Introduction to Text Analysis in R

Afficher le cours

Instructions

  • Only keep the non-complaints.
  • Create a bar plot using the new word_counts.
  • Title the plot "Non-Complaint Word Counts".

Exercice interactif pratique

Essayez cet exercice en complétant cet exemple de code.

word_counts <- tidy_twitter %>% 
  # Only keep the non-complaints
  ___(___) %>% 
  count(word) %>% 
  filter(n > 150)

# Create a bar plot using the new word_counts
ggplot(___, aes(___, ___)) +
  ___() +
  coord_flip() +
  # Title the plot "Non-Complaint Word Counts"
  ___(___)
Modifier et exécuter le code