This function plots a barplot of the patients' jackknife cluster staability.

The input vactor to this function can be obtained via Jackknife_cluster_stability; in the visualisation the clusters are ordered by staability.

plot_jackknife_cluster_stability(x, cluster_palette = distinct_palette_few)

Arguments

x

A REVOLVER cohort with fits, clusters and jackknife results available.

cluster_palette

A palette of colours; must be a function that when applied to a number it returns that number of colours.

Value

A ggplot figure.

See also

Examples

# Data released in the 'evoverse.datasets' data('TRACERx_NEJM_2017_REVOLVER', package = 'evoverse.datasets') plot_jackknife_cluster_stability(TRACERx_NEJM_2017_REVOLVER)