Learn R Programming

MoMPCA (version 1.0.1)

plot_topics: plot_topics

Description

Plot topic matrix

Usage

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