Description Usage Arguments Source Examples
View source: R/topic_wordcloud.R
This function display wordclouds plot of topics.
1 | topic_wordcloud(mallet_df, par_row, par_col, n_topic, maximum_n, cloud_scale )
|
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 |
David Mimno (2013) mallet: A wrapper around the Java machine learning tool MALLET
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.