plot_topic_words: Plot probability of each word in each topic

View source: R/text_mining.R

plot_topic_wordsR Documentation

Plot probability of each word in each topic

Description

Adapted from Julia Silge's blog.

Usage

plot_topic_words(stm_res, n_top = 10, ncol = 5)

Arguments

stm_res

A 'STM' object.

n_top

Number of top words to show per topic.

ncol

Number of columns in facetted plot.

Value

A ggplot object


pachterlab/museumst documentation built on April 20, 2024, 11:26 p.m.