cluster_plot: Plot string clusters as graph.

Description Usage Arguments Value Examples

Description

Plot string clusters as graph.

Usage

1
2
cluster_plot(cluster, min_cluster_size = 2, label_size = 2.5,
  repel = T)

Arguments

cluster

string clusters returned from 'cluster_strings()'

min_cluster_size

minimum size for clusters to be plotted.

label_size

how big should the cluster name fonts be.

repel

whether to "repel" (so cluster names won't overlap)

Value

a graph plot (using 'ggraph') of the string clusters.

Examples

1
2
3
s_vec <- c("alcool","alcohol","alcoholic","brandy","brandie","cachaça")
s_clust <- cluster_strings(s_vec,method="lv",max_dist=3,algo="cc")
cluster_plot(s_clust,min_cluster_size=1)

Example output

sh: 1: wc: Permission denied
Could not detect number of cores, defaulting to 1.
Using `stress` as default layout

clustringr documentation built on May 1, 2019, 9:23 p.m.