The function to create lda wordclouds
ldaWordclouds(
model,
test,
color_negative_cor = scale_color_gradient(low = "darkgreen", high = "green"),
color_positive_cor = scale_color_gradient(low = "darkred", high = "red"),
scale_size = FALSE,
plot_topics_idx = NULL,
p_threshold = 0.05,
save_dir = "./results",
figure_format = ".svg",
seed = 42
)
(list) The trained model
(list) The test results
(R_obj) The color gradient for negative correlations
(R_obj) The color gradient for positive correlations
(logical) Whether to scale the size of the words
(vector) The topics to plot determined by index
(integer) The p-value threshold to use for significance
(string) The directory to save the wordclouds
(string) Set the figure format, e.g., .svg, or .png.
(integer) The seed to set for reproducibility
nothing is returned, the wordclouds are saved in the save_dir