plot_cluster_profile: Plot one external variable by cluster

View source: R/characterize.R

plot_cluster_profileR Documentation

Plot one external variable by cluster

Description

Boxplot (continuous) or grouped bar plot of column proportions (categorical) of an external variable across clusters – the per-cluster distribution and gradient the manuscript should show.

Usage

plot_cluster_profile(labels, x, name = deparse(substitute(x)), col = NULL)

Arguments

labels

Cluster labels.

x

The variable (numeric -> boxplot; factor/character -> barplot).

name

Axis / title label for the variable.

col

Optional vector of cluster colours.

Value

Invisibly NULL; called for the plot.

See Also

characterize_clusters, cluster_biology_panel


MosaiClusteR documentation built on Oct. 25, 2026, 1:08 a.m.