View source: R/sequence-visualisations-extended.R
| plot_sequence_cluster_silhouette | R Documentation |
Plot sequence-cluster silhouette values
plot_sequence_cluster_silhouette(clustering, distance = NULL, ...)
clustering |
A clustering result or named assignment vector. |
distance |
Optional distance when |
... |
Additional arguments passed to |
The ordered per-sequence silhouette table, invisibly.
data <- data.frame(sequence_id = rep(paste0("s", 1:4), each = 4L),
sequence_order = rep(1:4, 4L),
state = c("A", "B", "C", "D", "A", "B", "C", "C",
"D", "C", "B", "A", "D", "C", "A", "A"))
distance <- compute_sequence_distance(data)
plot_sequence_cluster_silhouette(cluster_sequences(distance, 2L))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.