plot_topic_prop: Plot expected topic proportion in the corpus

View source: R/text_mining.R

plot_topic_propR Documentation

Plot expected topic proportion in the corpus

Description

This is equivalent to 'plot(stm_res, type = "symmary")', but it uses 'ggplot2' and looks nicer. Adapted from Julia Silge's blog.

Usage

plot_topic_prop(stm_res, n_top = 5, x_max = 0.15)

Arguments

stm_res

A 'STM' object.

n_top

Number of top words to show per topic.

x_max

Max in the x axis so all words will show in the plot.

Value

A ggplot object


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