set_LDA_plot_colors | R Documentation |
Based on the inputs, create the set of colors to be used in
the LDA plots made by plot.LDA_TS
.
set_LDA_plot_colors(x, cols = NULL, option = "C", alpha = 0.8)
x |
Object of class |
cols |
Colors to be used to plot the topics.
Any valid color values (e.g., see |
option |
A |
alpha |
Numeric value [0,1] that indicates the transparency of the
colors used. Supported only on some devices, see
|
vector
of character
hex codes indicating colors to
use.
data(rodents)
lda_data <- rodents$document_term_table
r_LDA <- LDA_set(lda_data, topics = 4, nseeds = 10)
set_LDA_plot_colors(r_LDA[[1]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.