cluster_boxplots: Plot boxplots with clusters

View source: R/plot.R

cluster_boxplotsR Documentation

Plot boxplots with clusters

Description

This is a convenience wrapper function for facet_boxplot(). Combined with annotate_clusters(), it doesn't require specifying axes in facet_boxplot().

Usage

cluster_boxplots(annotated_data, ...)

Arguments

annotated_data

data frame returned by annotate_clusters()

...

arguments passed to facet_boxplot()

Value

boxplots faceted by clusters

Examples

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)

visxhclust documentation built on March 31, 2023, 7:30 p.m.