Chapter 74 Word Cloud for Unigrams

We show the Fifty most important words. This Word Cloud is based on the TF- IDF scores. Higher the score, bigger is the size of the text.

plot_FoodInspectionWords_TF_IDF2 = plot_FoodInspectionWords_TF_IDF %>% top_n(100)

plot_FoodInspectionWords_TF_IDF2 %>%
  with(wordcloud(word, tf_idf, max.words = 50,colors=brewer.pal(8, "Dark2")))