Generate a clustering description plot from a rainette2 result
rainette2_plot(
res,
dtm,
k = NULL,
criterion = c("chi2", "n"),
complete_groups = FALSE,
type = c("bar", "cloud"),
n_terms = 15,
free_scales = FALSE,
measure = c("chi2", "lr"),
show_negative = TRUE,
text_size = 10
)
result object of a rainette2
clustering
the dfm object used to compute the clustering
number of groups. If NULL, use the biggest number possible
criterion to use to choose the best partition. chi2
means
the partition with the maximum sum of chi2, n
the partition with the
maximum size.
if TRUE, documents with NA cluster are reaffected by k-means clustering initialised with current groups centers.
type of term plots : barplot or wordcloud
number of terms to display in keyness plots
if TRUE, all the keyness plots will have the same scale
statistics to compute
if TRUE, show negative keyness features
font size for barplots, max word size for wordclouds
A gtable object.
quanteda::textstat_keyness()
, rainette2_explor()
, rainette2_complete_groups()