cluster_plot {clustringr} | R Documentation |
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
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)
[Package clustringr version 1.0 Index]