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

Connected

Exercise

Visualizing topics

Using what we've covered in previous chapters, let's visualize the topics produced by the LDA.

Instructions

100 XP
  • Keep the top 10 highest word probabilities by topic.
  • Create term2, a factor ordering term by word probability.
  • Plot term2 and the word probabilities.
  • Facet the bar plot by (i.e., ~) topic.