plot_wordcloud: Function to plot a word cloud for a given topic

Description Usage Arguments Details Value

Description

Can be passed to the plotfunction arguments in the createTopicBrowser function.

Usage

1
2
3
plot_wordcloud(lda_model = NULL, topic_term_matrix = NULL,
  clusterinfo = NULL, topic_nr, wordsize_scale = 0.75,
  relative_to_term_total = F, ...)

Arguments

lda_model

An lda model fitted using topicmodels::LDA

topic_term_matrix

a matrix of topics per term

clusterinfo

The output of the clusterinfo function

topic_nr

the index number of a topic

wordsize_scale

a scale for the word sizes

relative_to_term_total

make word sizes relative

Details

One of the standardized plotting function used in the Topicbrowser package to manage how topics and additional information are visualized. This specific function plots a wordcloud

One of lda_model, topic_term_matrix, or topicinfo needs to be specified

Value

nothing, only plots


vanatteveldt/topicbrowser documentation built on May 3, 2019, 2:59 p.m.