Session Ready
Exercise

Visualizing sentiment

Let's explore which words are associated with each sentiment in our Twitter data.

Instructions 1/2
undefined XP
  • 1
  • 2
  • Inner join tidy_twitter to the NRC dictionary and filter for positive, fear, and trust.
  • Count by word and sentiment and keep only the top 10 of each sentiment.
  • Create a factor called word2 that has each word ordered by the count.