cluster.phrases: Cluster phrases based on similarity of appearance.

Description Usage Arguments See Also

View source: R/vizualize_phrases.R

Description

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.

Usage

1
2
cluster.phrases(result, num.groups = 5, plot = TRUE, yaxt = "n",
  ylab = "", sub = "", main = "Association of Phrases", ...)

Arguments

result

A similarity matrix from make.similarity.matrix call or an textreg.result object

num.groups

Number of groups to box.

plot

Actually plot clustering or just calculate it.

yaxt

Whether to include a y-axis

ylab

Label for y-axis

sub

Subtitle for plot

main

Title of plot.

...

Extra arguments to pass to the plot command. See par.

See Also

Other Phrase Vizualization: make.appearance.matrix, make.phrase.correlation.chart, make.similarity.matrix


textreg documentation built on May 29, 2017, 12:25 p.m.