plot_topic_wordcloud()
prepares, saves, and displays word clouds of topics in a topic model. The function can display word clouds of one or more specific topics, or it can show word clouds for every topic.
Examples
austen <-
get_gutenberg_corpus(c(105, 121, 141, 158, 161, 946, 1342)) |>
dplyr::select(doc_id = title, text)
austen_lda <-
austen |>
make_topic_model(k = 30)
austen_lda |>
plot_topic_wordcloud(topic = 6)
See also
Other visualizing helpers:
change_colors()
,
plot_bigrams()
,
plot_doc_word_bars()
,
plot_doc_word_heatmap()
,
plot_hapax()
,
plot_htr()
,
plot_tf_idf()
,
plot_topic_bars()
,
plot_topic_distributions()
,
plot_ttr()
,
plot_vocabulary()
,
visualize()