plot_topic_prop | R Documentation |
This is equivalent to 'plot(stm_res, type = "symmary")', but it uses 'ggplot2' and looks nicer. Adapted from Julia Silge's blog.
plot_topic_prop(stm_res, n_top = 5, x_max = 0.15)
stm_res |
A 'STM' object. |
n_top |
Number of top words to show per topic. |
x_max |
Max in the x axis so all words will show in the plot. |
A ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.