Learn R Programming

clustringr (version 1.0)

cluster_plot: Plot string clusters as graph.

Description

Plot string clusters as graph.

Usage

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

Run this code
# NOT RUN {
s_vec <- c("alcool","alcohol","alcoholic","brandy","brandie","cacha<U+00E7>a")
s_clust <- cluster_strings(s_vec,method="lv",max_dist=3,algo="cc")
cluster_plot(s_clust,min_cluster_size=1)
# }

Run the code above in your browser using DataLab