Sometimes it is useful to see how the clusters in two different clustering solutions correspond to each other. Sankey diagram is a good way to visualize them. This function takes as input two clustering solutions and visualizes them using a Sankey diagram. The order of the reference clusters is defined by their labels in increasing order.
1 2 | plot_sankey(reference, clusters, plot_width = 400, plot_height = 600,
colors = NULL)
|
reference |
reference clustering labels |
clusters |
clustering labels under investigations |
plot_width |
width of the output plot in pixels |
colors |
colors of the links between two clusterings. If defined please note that each cluster in the reference clustering has to have its own color. This should be a normal text vector, e.g. c("#FF0000", "#FFA500", "#008000") |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.