Generate a function that returns the topic palette with a color associated with each topic. Function assumes that it is called within legolda directory.
1 | generate_topic_palette(lda_model, set_colors)
|
set_colors |
The set_colors data frame generated by 'load_data' |
lda_models |
A list of models of class LDA |
model_num |
The mode |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.