Cluster phrases based on similarity of their appearance in the positive documents. Can also plot this if so desired.
Uses hclust() with the ``ward.D'' method on 1-S with S from make.similarity.matrix
Warning: for 'negative weight' phrases this method does not do well since it ignores negative documents.
cluster.phrases(result, num.groups = 5, plot = TRUE, yaxt = "n",
ylab = "", sub = "", main = "Association of Phrases", ...)
A similarity matrix from make.similarity.matrix call or an textreg.result object
Number of groups to box.
Actually plot clustering or just calculate it.
Whether to include a y-axis
Label for y-axis
Subtitle for plot
Title of plot.
Extra arguments to pass to the plot command. See par.
Other Phrase Vizualization: make.appearance.matrix
,
make.phrase.correlation.chart
,
make.similarity.matrix