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.
Usage
plot_topic_wordcloud(lda, topics = NULL, crop = TRUE, savedir = "plots")
Arguments
- lda
The topic model to be used.
- topics
Topic numbers to be visualized. If left undefined, all topics will be visualized
- crop
Whether to remove white space from visualized word clouds
- savedir
The directory to save plots in. Defaults to "plots"
Value
Graphic(s) prepared with knitr for Quarto or RMarkdown
See also
Other visualizing helpers:
change_colors(),
italicize_titles(),
plot_bigrams(),
plot_doc_word_bars(),
plot_doc_word_heatmap(),
plot_hapax(),
plot_hir(),
plot_tf_idf(),
plot_topic_bars(),
plot_topic_distributions(),
plot_ttr(),
plot_vocabulary(),
theme_tmtyro(),
visualize()