Generate a clustering description plot from a rainette2 result
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 )
res |
result object of a |
dtm |
the dfm object used to compute the clustering |
k |
number of groups. If NULL, use the biggest number possible |
criterion |
criterion to use to choose the best partition. |
complete_groups |
if TRUE, documents with NA cluster are reaffected by k-means clustering initialised with current groups centers. |
type |
type of term plots : barplot or wordcloud |
n_terms |
number of terms to display in keyness plots |
free_scales |
if TRUE, all the keyness plots will have the same scale |
measure |
statistics to compute |
show_negative |
if TRUE, show negative keyness features |
text_size |
font size for barplots, max word size for wordclouds |
A gtable object.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.