cluster_plot: Plot string clusters as graph.

Description Usage Arguments Value Examples

View source: R/cluster_plot.R

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<c3><a7>a")
s_clust <- cluster_strings(s_vec,method="lv",max_dist=3,algo="cc")
cluster_plot(s_clust,min_cluster_size=1)

dan-reznik/clustringr documentation built on May 20, 2019, 12:35 p.m.