cluster_boxplots | R Documentation |
This is a convenience wrapper function for facet_boxplot()
.
Combined with annotate_clusters()
, it
doesn't require specifying axes in facet_boxplot()
.
cluster_boxplots(annotated_data, ...)
annotated_data |
data frame returned by |
... |
arguments passed to |
boxplots faceted by clusters
dmat <- compute_dmat(iris, "euclidean", TRUE, c("Petal.Length", "Sepal.Length"))
clusters <- compute_clusters(dmat, "complete")
cluster_labels <- cut_clusters(clusters, 2)
annotated_data <- annotate_clusters(iris[, c("Petal.Length", "Sepal.Length")], cluster_labels)
cluster_boxplots(annotated_data, boxplot_colors = visxhclust::cluster_colors)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.