topic_wordcloud: The wordcloud plot for topics

Description Usage Arguments Source Examples

View source: R/topic_wordcloud.R

Description

This function display wordclouds plot of topics.

Usage

1
topic_wordcloud(mallet_df, par_row, par_col, n_topic, maximum_n, cloud_scale )

Arguments

mallet_df

The model trained by get_topic function

par_row

The numbers of rows in plot. default 3

par_col

The number of coulmn in plot. default 3

n_topic

The number of topics in the model

maximum_n

The maximum number of words per clouds. default 200

cloud_scale

The size of wordclouds. default 2.5

Source

David Mimno (2013) mallet: A wrapper around the Java machine learning tool MALLET

Examples

1
2
3
df_ pre <- twitter_preprocess(df_tweets, ud_lang = "spanish", stop_words)
df_topics <- twitter_topic(df_pre,  n_topic = 7)
topic_wordcloud(df_topics, maximum_n = 200, cloud_scale = 2.5)

BeaJJ/ComTxt documentation built on Dec. 17, 2021, 10:46 a.m.