Get startedGet started for free

Visualizing non-complaints

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

This exercise is part of the course

Introduction to Text Analysis in R

View Course

Exercise instructions

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

Hands-on interactive exercise

Have a go at this exercise by completing this sample 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"
  ___(___)
Edit and Run Code