plot_topics: plot_topics

Description Usage Arguments Value

View source: R/plot.R

Description

Plot topic matrix

Usage

1
plot_topics(res, s = 2, n_words = 10)

Arguments

res

An S4 object of class mmpcaClust

s

an entropy correction parameter for the topic matrix. It is applied to the beta matrix before sorting the words by highest probability. The greater, the more emphasis is put towards words contributing a lot to the entropy of a topic. Set s=1 to ignore.

n_words

the number of words to display per topic.

Value

a ggplot2 object


MoMPCA documentation built on Jan. 21, 2021, 5:09 p.m.