textTopicsWordcloud() plots wordclouds of topics from a Topic Model based on their significance determined by a linear or binary regression
textTopicsWordcloud(
model,
test,
color_negative_cor = ggplot2::scale_color_gradient(low = "darkred", high = "red"),
color_positive_cor = ggplot2::scale_color_gradient(low = "darkgreen", high = "green"),
scale_size = FALSE,
plot_topics_idx = NULL,
p_threshold = 0.05
)
(data.frame) The model returned from textTopics().
(data.frame) the test returned from textTopicTest()
(ggplot2::scale_color_gradient()) color gradient of topic cloud with negative correlation
(ggplot2::scale_color_gradient) color gradient of topic cloud with positive correlation
(bool) if True, then the size of the topic cloud is scaled by the prevalence of the topic
(list) if specified, then only the specified topics are plotted
(float) set significance threshold which determines which topics are plotted